From 9e06aef78c343476ee39698c0f17aa49b7e49999 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 5 Oct 2021 14:38:47 +1100 Subject: Feature [feature-requests:#1417] Consolidate character classification functions in CharacterType.h, merging duplicate functions, removing unused functions and stadardizing names. --- src/Editor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Editor.cxx') 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()) { -- cgit v1.2.3