fixed moveBackToLineStart() method on ZString.
This commit is contained in:
1 parent
2de5693e87
commit
76ba5414cd
1 file changed
+4
-2
+4
-2
@@ -586,8 +586,10 @@ namespace coreutils {
|
||||
|
||||
void ZString::moveBackToLineStart() {
|
||||
while(cursor != data) {
|
||||
if(*cursor == '\n')
|
||||
break;
|
||||
if(*cursor == '\n') {
|
||||
cursor++;
|
||||
break;
|
||||
}
|
||||
cursor--;
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user