diff options
author | Neil <nyamatongwe@gmail.com> | 2020-03-26 09:28:15 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-03-26 09:28:15 +1100 |
commit | 5e1f3c9b721f436cd60961af3df53734f10deedf (patch) | |
tree | 36499b447ce0b871aafdd1bd23716b120d70ed27 /src/Editor.cxx | |
parent | 46d00d15940a78ba6cd5fb5b884e08d0394c3abe (diff) | |
download | scintilla-mirror-5e1f3c9b721f436cd60961af3df53734f10deedf.tar.gz |
Fix spelling mistakes.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 2709e3d3d..17cabd065 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1183,7 +1183,7 @@ Editor::XYScrollPosition Editor::XYScrollToMakeVisible(const SelectionRange &ran yMarginT = yMarginB = 0; } else { // yMarginT must equal to caretYSlop, with a minimum of 1 and - // a maximum of slightly less than half the heigth of the text area. + // a maximum of slightly less than half the height of the text area. yMarginT = std::clamp<Sci::Line>(policies.y.slop, 1, halfScreen); if (bEven) { yMarginB = yMarginT; @@ -1239,7 +1239,7 @@ Editor::XYScrollPosition Editor::XYScrollToMakeVisible(const SelectionRange &ran } } else { // Strict or going out of display if (bEven) { - // Always center caret + // Always centre caret newXY.topLine = lineCaret - halfScreen; } else { // Always put caret on top of display @@ -1332,7 +1332,7 @@ Editor::XYScrollPosition Editor::XYScrollToMakeVisible(const SelectionRange &ran (bJump && (pt.x < rcClient.left || pt.x >= rcClient.right))) { // Strict or going out of display if (bEven) { - // Center caret + // Centre caret newXY.xOffset += static_cast<int>(pt.x - rcClient.left - halfScreen); } else { // Put caret on right @@ -6178,7 +6178,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { InvalidateStyleRedraw(); break; - // Control specific mesages + // Control specific messages case SCI_ADDTEXT: { if (lParam == 0) |