From 76ba5414cd94c90533bee20b0e0220b1dcf6b0fa Mon Sep 17 00:00:00 2001 From: Brad Arant Date: Tue, 26 Nov 2024 10:37:39 -0800 Subject: [PATCH] fixed moveBackToLineStart() method on ZString. --- ZString.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ZString.cpp b/ZString.cpp index b183547..f2b749d 100644 --- a/ZString.cpp +++ b/ZString.cpp @@ -586,8 +586,10 @@ namespace coreutils { void ZString::moveBackToLineStart() { while(cursor != data) { - if(*cursor == '\n') - break; + if(*cursor == '\n') { + cursor++; + break; + } cursor--; } return;