From 6f004d86a459e1f5728182727f2f8c9b09b69782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20J=C3=B6nsson?= Date: Sat, 9 May 2015 13:21:35 +0200 Subject: [PATCH] Rename sortAllLines -> sortEntireDocument. --- PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp index 6d40acfa..86a9cf62 100644 --- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp @@ -2970,8 +2970,8 @@ void ScintillaEditView::sortLines(size_t fromLine, size_t toLine, bool isDescend const generic_string text = getGenericTextAsString(startPos, endPos); std::vector splitText = stringSplit(text, getEOLString()); const size_t lineCount = execute(SCI_GETLINECOUNT); - const bool sortAllLines = toLine == lineCount - 1; - if (!sortAllLines) + const bool sortEntireDocument = toLine == lineCount - 1; + if (!sortEntireDocument) { if (splitText.rbegin()->empty()) { @@ -2990,7 +2990,7 @@ void ScintillaEditView::sortLines(size_t fromLine, size_t toLine, bool isDescend sortedText = lexicographicSort(splitText, isDescending); } const generic_string joined = stringJoin(sortedText, getEOLString()); - if (sortAllLines) + if (sortEntireDocument) { replaceTarget(joined.c_str(), startPos, endPos); }