changeset 19215:e85203f41402 gui-release

set cursor color of the editor to color of default text (bug #43314) * file-editor-tab.cc (update_lexer): set color of cursor and of indentation guide to the default styles color of the lexer
author Torsten <ttl@justmail.de>
date Sun, 28 Sep 2014 17:30:38 +0200
parents a748865bfafb
children 4b6f87c6739f
files libgui/src/m-editor/file-editor-tab.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc	Sun Sep 28 09:23:27 2014 +0200
+++ b/libgui/src/m-editor/file-editor-tab.cc	Sun Sep 28 17:30:38 2014 +0200
@@ -560,6 +560,8 @@
   lexer->readSettings (*settings);
 
   _edit_area->setLexer (lexer);
+  _edit_area->setCaretForegroundColor (lexer->color (0));
+  _edit_area->setIndentationGuidesForegroundColor (lexer->color (0));
 
   // fix line number width with respect to the font size of the lexer
   if (settings->value ("editor/showLineNumbers", true).toBool ())