ecere/gui/controls/EditBox: Fixed remaining issue with selection, tabs and freecaret
authorJerome St-Louis <jerome@ecere.com>
Fri, 15 Jul 2016 04:47:35 +0000 (00:47 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 28 Jul 2016 21:35:23 +0000 (17:35 -0400)
ecere/src/gui/controls/EditBox.ec

index b31dfc0..2de16b5 100644 (file)
@@ -1648,7 +1648,10 @@ private:
                   th = space.h;
                }
                else
+               {
                   surface.TextExtent2(buffer, line.count, &tw, &th, 0, null, &oh);
+                  tw += countTabsExtraSpaces(buffer, tabSize, 0, line.count) * space.w;
+               }
             }
             else if(line == selStartLine)
             {