ecere/EditBox: (#1073) Fixed hex number highlighting bug: 0x3, p
authorJerome St-Louis <jerome@ecere.com>
Tue, 8 Apr 2014 17:46:00 +0000 (13:46 -0400)
committerJerome St-Louis <jerome@ecere.com>
Tue, 8 Apr 2014 17:46:00 +0000 (13:46 -0400)
ecere/src/gui/controls/EditBox.ec

index aaa6b6d..af50445 100644 (file)
@@ -1792,6 +1792,7 @@ private:
                               exponent = strchr(word, 'e');
                               if(!exponent) exponent = strchr(word, 'E');
                            }
+                           if(exponent && exponent > word + wordLen) exponent = null;
                            if(dot && dot > word + wordLen) dot = null;
                            isReal = dot || exponent;
                            if(isReal)