ecere/gui/EditBox: (#776) Fixed Undo issue: PutCh was ignoring tab character
authorJerome St-Louis <jerome@ecere.com>
Thu, 10 Jul 2014 21:52:20 +0000 (17:52 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 10 Jul 2014 21:52:20 +0000 (17:52 -0400)
ecere/src/gui/controls/EditBox.ec

index 97a3d4b..71a363a 100644 (file)
@@ -5428,7 +5428,7 @@ public:
    {
       bool result;
 
-      if((ch >= 32 /*&& ch <=126*/) || ch == '\n')
+      if((ch >= 32 /*&& ch <=126*/) || ch == '\n' || ch == '\t')
       //if((ch >= 32) || ch == '\n')
       {
          int addedSpaces = 0, addedTabs = 0, xAdjustment = 0;