ecere/EditBox Syntax Highlighting: Fix for overwrite caret disabling word color ...
authorJerome St-Louis <jerome@ecere.com>
Tue, 29 May 2012 16:07:42 +0000 (12:07 -0400)
committerJerome St-Louis <jerome@ecere.com>
Tue, 29 May 2012 16:07:42 +0000 (12:07 -0400)
ecere/src/gui/controls/EditBox.ec

index c24f62d..7b84431 100644 (file)
@@ -1548,7 +1548,10 @@ private:
             
             textColor = newTextColor;
             if(!selected)
+            {
+               foreground = textColor;
                surface.SetForeground(textColor);
+            }
 
             // Look at words
             for(; c<end && !cantHaveWords;)
@@ -1755,7 +1758,10 @@ private:
                            {
                               textColor = newTextColor;
                               if(!selected)
+                              {
+                                 foreground = textColor;
                                  surface.SetForeground(textColor);
+                              }
                            }
                         }
                      }