mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 20:12:36 +02:00
SynEdit: Improve non utf8 char-set handling (may happen with gtk1). This was broken by DoubleWidthChar handling
git-svn-id: trunk@18669 -
This commit is contained in:
parent
02251dc4d6
commit
84bfb63537
@ -54,6 +54,9 @@ var
|
||||
i: Integer;
|
||||
begin
|
||||
Result := inherited GetPhysicalCharWidths(Line, Index);
|
||||
if not IsUtf8 then
|
||||
exit;
|
||||
|
||||
for i := 0 to length(Line) -1 do begin
|
||||
if Result[i] = 0 then continue;
|
||||
case Line[i+1] of
|
||||
|
Loading…
Reference in New Issue
Block a user