mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 07:30:19 +02:00
SynEdit: add ETO_RTLREADING to tokendrawer, required if wrapped text starts with weak RTL char
This commit is contained in:
parent
ad7e912a49
commit
b96f00e77f
@ -1652,8 +1652,10 @@ var
|
||||
end;
|
||||
|
||||
if ATokenInfo.RtlInfo.IsRtl then begin
|
||||
// Always draw the entire RTL run, to keep weak chars in context.
|
||||
// Alternatively, could use ETO_RTLREADING
|
||||
// Always draw the entire RTL run, to keep weak chars in context. Alternatively, could use ETO_RTLREADING
|
||||
// Need ETO_RTLREADING anyway when wrapping leads to leading weakchars in token
|
||||
TxtFlags := TxtFlags + ETO_RTLREADING;
|
||||
|
||||
j := (ATokenInfo.StartPos.Logical - ATokenInfo.RtlInfo.LogFirst); // bytes in rtl-run, before TokenStart
|
||||
i := (ATokenInfo.RtlInfo.LogLast - ATokenInfo.EndPos.Logical); // bytes in rtl-run, after TokenEnd
|
||||
ATokenInfo.Tk.TokenStart := ATokenInfo.Tk.TokenStart - j;
|
||||
|
Loading…
Reference in New Issue
Block a user