aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-03-26 09:28:15 +1100
committerNeil <nyamatongwe@gmail.com>2020-03-26 09:28:15 +1100
commit808e00138126f7ce571fd905498dba6614c16278 (patch)
tree8e6fd9ed479c7a2a12ec73fed9bff305806986ff /src/Editor.cxx
parent878a934343d10fb3f5412c06522db2f46570c1bb (diff)
downloadscintilla-mirror-808e00138126f7ce571fd905498dba6614c16278.tar.gz
Backport: Fix spelling mistakes.
Backport of changeset 8028:78a688809e75.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index fb3aae6a1..b90ed3010 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1179,7 +1179,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 = Sci::clamp(static_cast<Sci::Line>(policies.y.slop), static_cast<Sci::Line>(1), halfScreen);
if (bEven) {
yMarginB = yMarginT;
@@ -1235,7 +1235,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
@@ -1328,7 +1328,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
@@ -6173,7 +6173,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)