aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.cxx
diff options
context:
space:
mode:
authorZufu Liu <unknown>2023-11-24 09:01:05 +1100
committerZufu Liu <unknown>2023-11-24 09:01:05 +1100
commit0d84ef7da391ff193c944cb47b7a4eddeb61d8c3 (patch)
treefd24e0efe2435e97189210847aab2e32d7be36d8 /src/ViewStyle.cxx
parentc9668d46c7209e8f1f86a109e9c41aac07232492 (diff)
downloadscintilla-mirror-0d84ef7da391ff193c944cb47b7a4eddeb61d8c3.tar.gz
Feature [feature-requests:#1502] Simplify FlagSet expressions.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r--src/ViewStyle.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index a669fce4a..04f2de977 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -712,8 +712,7 @@ bool ViewStyle::SetWrapIndentMode(WrapIndentMode wrapIndentMode_) noexcept {
bool ViewStyle::IsBlockCaretStyle() const noexcept {
return ((caret.style & CaretStyle::InsMask) == CaretStyle::Block) ||
- FlagSet(caret.style, CaretStyle::OverstrikeBlock) ||
- FlagSet(caret.style, CaretStyle::Curses);
+ FlagSet(caret.style, (CaretStyle::OverstrikeBlock | CaretStyle::Curses));
}
bool ViewStyle::IsCaretVisible(bool isMainSelection) const noexcept {