aboutsummaryrefslogtreecommitdiffhomepage
path: root/curses/ScintillaCurses.cxx
diff options
context:
space:
mode:
authormitchell <unknown>2020-04-07 20:32:45 -0400
committermitchell <unknown>2020-04-07 20:32:45 -0400
commit18901fe7af010c3db713190f6666ddd039276e41 (patch)
tree97fd20b496e877c60f0db3499f240f69584f8657 /curses/ScintillaCurses.cxx
parentd42a314c365bb5483462b2c65807de363f2ac687 (diff)
downloadscintilla-mirror-18901fe7af010c3db713190f6666ddd039276e41.tar.gz
Fixed drawing of block caret in overtype mode.
The overtype cursor was being displayed one cell behind the current position.
Diffstat (limited to 'curses/ScintillaCurses.cxx')
-rw-r--r--curses/ScintillaCurses.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/curses/ScintillaCurses.cxx b/curses/ScintillaCurses.cxx
index fefaa207d..619e5bd90 100644
--- a/curses/ScintillaCurses.cxx
+++ b/curses/ScintillaCurses.cxx
@@ -965,7 +965,7 @@ public:
vs.selColours.fore = ColourDesired(0, 0, 0); // black on white selection
vs.selColours.fore.isSet = true; // setting selection foreground above
vs.caretcolour = ColourDesired(0xFF, 0xFF, 0xFF); // white caret
- vs.caretStyle = CARETSTYLE_BLOCK; // block caret
+ vs.caretStyle = CARETSTYLE_BLOCK | CARETSTYLE_OVERSTRIKE_BLOCK; // blk caret
vs.leftMarginWidth = 0, vs.rightMarginWidth = 0; // no margins
vs.ms[1].width = 1; // marker margin width should be 1
vs.extraDescent = -1; // hack to make lineHeight 1 instead of 2