added moveBackToLineStart() method on ZString.
This commit is contained in:
1 parent
ab4da04de6
commit
2de5693e87
2 files changed
+15
No files matched your search
@@ -584,5 +584,13 @@ namespace coreutils {
|
||||
return line;
|
||||
}
|
||||
|
||||
void ZString::moveBackToLineStart() {
|
||||
while(cursor != data) {
|
||||
if(*cursor == '\n')
|
||||
break;
|
||||
cursor--;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user