aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r--src/ViewStyle.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index c867c2f76..ec6d8e52c 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -545,10 +545,13 @@ bool ViewStyle::SetWrapIndentMode(int wrapIndentMode_) noexcept {
}
bool ViewStyle::IsBlockCaretStyle() const noexcept {
- return (caretStyle == CARETSTYLE_BLOCK) || (caretStyle & CARETSTYLE_OVERSTRIKE_BLOCK) != 0;
+ return ((caretStyle & CARETSTYLE_INS_MASK) == CARETSTYLE_BLOCK) ||
+ (caretStyle & CARETSTYLE_OVERSTRIKE_BLOCK) != 0;
}
bool ViewStyle::DrawCaretInsideSelection(bool inOverstrike, bool imeCaretBlockOverride) const noexcept {
+ if (caretStyle & CARETSTYLE_BLOCK_AFTER)
+ return false;
return ((caretStyle & CARETSTYLE_INS_MASK) == CARETSTYLE_BLOCK) ||
(inOverstrike && (caretStyle & CARETSTYLE_OVERSTRIKE_BLOCK) != 0) ||
imeCaretBlockOverride;