diff options
author | nyamatongwe <devnull@localhost> | 2001-04-10 06:51:05 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-04-10 06:51:05 +0000 |
commit | c7f09e03f1d8598a6b039c9b86439872f105c1a2 (patch) | |
tree | ea4e244db7d56cc5d2011001dc76630ead9fa8e6 /src | |
parent | c24d8729611753cca71121a91c6d73db1ef57561 (diff) | |
download | scintilla-mirror-c7f09e03f1d8598a6b039c9b86439872f105c1a2.tar.gz |
Turn off caret line when caret is turned off such as when don't have focus.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 185f15415..e6b1d69f3 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -881,7 +881,7 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis bool overrideBackground = false; Colour background = Colour(0, 0, 0); - if (vsDraw.showCaretLineBackground && ll.containsCaret) { + if (caret.active && vsDraw.showCaretLineBackground && ll.containsCaret) { overrideBackground = true; background = vsDraw.caretLineBackground.allocated; } |