From c7f09e03f1d8598a6b039c9b86439872f105c1a2 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 10 Apr 2001 06:51:05 +0000 Subject: Turn off caret line when caret is turned off such as when don't have focus. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3