Mercurial > octave-nkf
diff libgui/src/m-editor/file-editor-tab.cc @ 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 | 2e6b34324d50 |
children | 85b2d669c21e |
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 ())