Browse Source

+ bug fix in the rendering of double width characters

git-svn-id: branches/unicodekvm@48781 -
nickysn 4 years ago
parent
commit
7b71eefbdf
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/rtl-console/src/unix/video.pp

+ 2 - 1
packages/rtl-console/src/unix/video.pp

@@ -757,7 +757,8 @@ begin
       begin
       begin
         if LastCharWasDoubleWidth then
         if LastCharWasDoubleWidth then
          LastCharWasDoubleWidth:=false
          LastCharWasDoubleWidth:=false
-        else if (not force) and (p^=pold^) then
+        else if (not force) and (p^=pold^) and
+          ((ExtendedGraphemeClusterDisplayWidth(p^.ExtendedGraphemeCluster) <= 1) or (x=LastLineWidth) or (p[1]=pold[1])) then
          begin
          begin
            if (Spaces>0) then
            if (Spaces>0) then
             OutSpaces;
             OutSpaces;