Setup ed the posix line editor.

This commit is contained in:
2026-08-09 16:31:09 +01:00
parent 717c048d6f
commit f044f69f1c
13 changed files with 820 additions and 72 deletions
+4 -5
View File
@@ -24,8 +24,8 @@ struct Iterator {
Shard *root;
std::string line;
Iterator(Shard *root, uint64_t line_num)
: root(root), it(root, line_num, Direction::Forward) {
Iterator(Shard *root, uint64_t line_num, Direction dir)
: root(root), it(root, line_num, dir) {
Shard::retain(root);
}
@@ -63,9 +63,8 @@ struct Iterator {
return *this;
}
std::string &next() {
it.next(&line);
return line;
bool next() {
return it.next(&line);
}
private: