diff options
author | Zufu Liu <unknown> | 2023-11-24 09:01:05 +1100 |
---|---|---|
committer | Zufu Liu <unknown> | 2023-11-24 09:01:05 +1100 |
commit | 0d84ef7da391ff193c944cb47b7a4eddeb61d8c3 (patch) | |
tree | fd24e0efe2435e97189210847aab2e32d7be36d8 /src/ViewStyle.cxx | |
parent | c9668d46c7209e8f1f86a109e9c41aac07232492 (diff) | |
download | scintilla-mirror-0d84ef7da391ff193c944cb47b7a4eddeb61d8c3.tar.gz |
Feature [feature-requests:#1502] Simplify FlagSet expressions.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 3 |
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 { |