ecere/gui/EditBox: Fixed yet another glitch in the number syntax highlighter
authorJerome St-Louis <jerome@ecere.com>
Tue, 29 Oct 2013 01:14:27 +0000 (21:14 -0400)
committerJerome St-Louis <jerome@ecere.com>
Tue, 29 Oct 2013 01:14:27 +0000 (21:14 -0400)
ecere/src/gui/controls/EditBox.ec

index cfbd24a..dec9ec9 100644 (file)
@@ -1732,6 +1732,7 @@ private:
                         {
                            char * dot = strchr(word, '.');
                            char * s = null;
+                           if(dot && dot > word + wordLen) dot = null;
                            if(dot)
                               strtod((dot == word + wordLen) ? (dot+1) : word, &s);
                            else