aligrudi / neatvi

A small vi/ex editor for editing UTF-8 text
http://litcave.rudi.ir/
305 stars 25 forks source link

white background when mixing RTL/LTR in a line #84

Closed mohammad5305 closed 4 months ago

mohammad5305 commented 4 months ago

after mixing persian and english, persian gets white background, its a not terminal issue because both st and lxterminal had this issue, also removed all highlights but still gets white bg

image

aligrudi commented 4 months ago

"mohammad.b" @.***> wrote:

after mixing persian and english, persian gets white background, its a not terminal issue because both st and lxterminal had this issue, also removed all highlights but still gets white bg

image

That is expected, as the text in the reverse direction of the line is highlighted using SYN_REVDIR (see conf.h). You can override that if you wish.

Also, you can define LNPREF as "\33[3l]" in conf.h to disable BiDi in vte-based terminals (that is probably why the text is not rendered properly in your screenshot).

Ali