aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-04-10 06:51:05 +0000
committernyamatongwe <devnull@localhost>2001-04-10 06:51:05 +0000
commitc7f09e03f1d8598a6b039c9b86439872f105c1a2 (patch)
treeea4e244db7d56cc5d2011001dc76630ead9fa8e6 /src/Editor.cxx
parentc24d8729611753cca71121a91c6d73db1ef57561 (diff)
downloadscintilla-mirror-c7f09e03f1d8598a6b039c9b86439872f105c1a2.tar.gz
Turn off caret line when caret is turned off such as when don't have focus.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx2
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;
}