diff options
author | Zufu Liu <unknown> | 2019-02-02 10:26:58 +1100 |
---|---|---|
committer | Zufu Liu <unknown> | 2019-02-02 10:26:58 +1100 |
commit | dceb72247c99932399784780437344934260b11d (patch) | |
tree | 2055803a2051ea9d4ba752707becad0b78d131eb /src/Editor.cxx | |
parent | 3272cf2d93f0beb2eed50f85fe115fa101f4de08 (diff) | |
download | scintilla-mirror-dceb72247c99932399784780437344934260b11d.tar.gz |
Feature [feature-requests:#1217]. Implement CARETSTYLE_BLOCK_ALWAYS.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index efae01a4d..800037501 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1354,7 +1354,7 @@ Editor::XYScrollPosition Editor::XYScrollToMakeVisible(const SelectionRange &ran newXY.xOffset = static_cast<int>(pt.x + xOffset - rcClient.left) - 2; } else if (pt.x + xOffset >= rcClient.right + newXY.xOffset) { newXY.xOffset = static_cast<int>(pt.x + xOffset - rcClient.right) + 2; - if ((vs.caretStyle == CARETSTYLE_BLOCK) || view.imeCaretBlockOverride) { + if ((vs.caretStyle == CARETSTYLE_BLOCK || vs.caretStyle == CARETSTYLE_BLOCK_ALWAYS) || view.imeCaretBlockOverride) { // Ensure we can see a good portion of the block caret newXY.xOffset += static_cast<int>(vs.aveCharWidth); } @@ -7290,7 +7290,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { return vs.caretcolour.AsInteger(); case SCI_SETCARETSTYLE: - if (wParam <= CARETSTYLE_BLOCK) + if (wParam <= CARETSTYLE_BLOCK_ALWAYS) vs.caretStyle = static_cast<int>(wParam); else /* Default to the line caret */ |