Fix iteration and petal append bugs.

This commit is contained in:
2026-08-10 14:21:46 +01:00
parent e56f784c9a
commit 23b7b8c8a8
6 changed files with 33 additions and 35 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ bool Ed::handle(std::string cmd, bool eof) {
throw ed_error("Line 0 is invalid.");
if (line > vase.lines())
throw ed_error("Line position too high.");
Iterator it = vase.iterate(line - 1, Direction::Backward);
Iterator it = vase.iterate(line - 1, Direction::Forward);
it.next();
std::cout << it.line << std::endl;
} break;