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