ecere/gui/EditBox: Fixed Undo bug with selection and Overwrite mode
authorJerome St-Louis <jerome@ecere.com>
Wed, 7 Aug 2013 23:16:07 +0000 (19:16 -0400)
committerJerome St-Louis <jerome@ecere.com>
Wed, 7 Aug 2013 23:16:07 +0000 (19:16 -0400)
ecere/src/gui/controls/EditBox.ec

index ee05aea..4acebde 100644 (file)
@@ -5232,7 +5232,7 @@ public:
          if(style.allCaps)
             ch = (ch < 128) ? toupper(ch) : ch;     // TODO: UNICODE TO UPPER
 
-         if(this.x < this.line.count && this.overwrite)
+         if(this.overwrite && selX == x && selY == y && this.x < this.line.count)
          {
             char buffer[5];
             char * newString;