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