Add cancel buffer (to store cancelled operations.)

This commit is contained in:
2026-09-08 11:50:17 +01:00
parent 51676362b9
commit d6d3f31326
6 changed files with 31 additions and 19 deletions
+2 -2
View File
@@ -272,7 +272,7 @@ std::pair<vase::Shard *, bool> TextMode::run_terminal() {
cursor.col = byte_column(previous.line, wanted);
} break;
case io::KeyEvent::SpecialKey::DOWN: {
if (cursor.row + 1 >= vase->lines)
if (cursor.row >= vase->lines)
break;
vase::Iterator current(vase, cursor.row, Direction::Forward);
if (!current.next())
@@ -294,7 +294,7 @@ std::pair<vase::Shard *, bool> TextMode::run_terminal() {
if (!it.next())
throw ed_error("Invalid cursor position.");
next.col = next_cluster(it.line, cursor.col);
} else if (cursor.row + 1 < vase->lines) {
} else if (cursor.row < vase->lines) {
++next.row;
next.col = 0;
} else {