From 2d6b00438113aee25d59ea1af97c8bf50c32e7dc Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 16 Nov 2018 14:06:53 +0000 Subject: [PATCH] Set caret colour to foreground colour in scintilla --- qrenderdoc/Code/ScintillaSyntax.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qrenderdoc/Code/ScintillaSyntax.cpp b/qrenderdoc/Code/ScintillaSyntax.cpp index 5cc3262c3..5b3497c71 100644 --- a/qrenderdoc/Code/ScintillaSyntax.cpp +++ b/qrenderdoc/Code/ScintillaSyntax.cpp @@ -255,6 +255,8 @@ void ConfigureSyntax(ScintillaEdit *scintilla, int language) scintilla->styleSetBack(STYLE_DEFAULT, SC_COL(base)); scintilla->styleSetFore(STYLE_DEFAULT, SC_COL(text)); + scintilla->setCaretFore(SC_COL(text)); + // default all lexer styles up to STYLE_DEFAULT as the same, then override per-colour below for(sptr_t i = 0; i < STYLE_DEFAULT; i++) {