diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2021-10-10 02:02:10 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2021-10-10 02:02:10 +0300 |
commit | 2bcf60285e1c196bf05cd47a8e04beb150b485ef (patch) | |
tree | 1d48f8db0b5f42725998fef197bcb762a9a64fb2 /src/ViewStyle.h | |
parent | 371b6e510e62d7d3ca5fd5133f190ef6a7bb72ff (diff) | |
download | scintilla-mirror-2bcf60285e1c196bf05cd47a8e04beb150b485ef.tar.gz |
Added Scintilla::Curses to allow for terminal drawing of the main caret.
This is the patch from scinterm/patches/02-caretstyle_curses.patch.
Diffstat (limited to 'src/ViewStyle.h')
-rw-r--r-- | src/ViewStyle.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ViewStyle.h b/src/ViewStyle.h index de56c0895..704da635a 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -235,9 +235,10 @@ public: enum class CaretShape { invisible, line, block, bar }; bool IsBlockCaretStyle() const noexcept; - bool IsCaretVisible() const noexcept; + bool IsCaretVisible(bool isMainSelection) const noexcept; + bool IsMainCursesCaret(bool isMainSelection) const noexcept; bool DrawCaretInsideSelection(bool inOverstrike, bool imeCaretBlockOverride) const noexcept; - CaretShape CaretShapeForMode(bool inOverstrike) const noexcept; + CaretShape CaretShapeForMode(bool inOverstrike, bool isMainSelection) const noexcept; private: void AllocStyles(size_t sizeNew); |