diff options
author | Neil <nyamatongwe@gmail.com> | 2021-10-05 14:38:47 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-10-05 14:38:47 +1100 |
commit | 9e06aef78c343476ee39698c0f17aa49b7e49999 (patch) | |
tree | fe5bb15362ffed7ff10ced26339c80df7a1e2de6 /src/Editor.cxx | |
parent | 180ea34843782451f6d0684af51b584b83a4dd62 (diff) | |
download | scintilla-mirror-9e06aef78c343476ee39698c0f17aa49b7e49999.tar.gz |
Feature [feature-requests:#1417] Consolidate character classification functions
in CharacterType.h, merging duplicate functions, removing unused functions and
stadardizing names.
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 06d96134f..493146455 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2193,10 +2193,10 @@ void Editor::PasteRectangular(SelectionPosition pos, const char *ptr, Sci::Posit sel.RangeMain().caret = RealizeVirtualSpace(sel.RangeMain().caret); const int xInsert = XFromPosition(sel.RangeMain().caret); bool prevCr = false; - while ((len > 0) && IsEOLChar(ptr[len-1])) + while ((len > 0) && IsEOLCharacter(ptr[len-1])) len--; for (Sci::Position i = 0; i < len; i++) { - if (IsEOLChar(ptr[i])) { + if (IsEOLCharacter(ptr[i])) { if ((ptr[i] == '\r') || (!prevCr)) line++; if (line >= pdoc->LinesTotal()) { |