summaryrefslogtreecommitdiff
path: root/src/ninep
diff options
context:
space:
mode:
Diffstat (limited to 'src/ninep')
-rw-r--r--src/ninep/ctl.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig
index 7321f569..d815632d 100644
--- a/src/ninep/ctl.zig
+++ b/src/ninep/ctl.zig
@@ -2442,6 +2442,8 @@ test "a remembered place is clamped to the file as it is now, its selection's tw
try testing.expect(std.mem.endsWith(u8, back.file.?.path, "/c.txt"));
try testing.expect(back.body.cur_row <= 1);
try testing.expect(back.body.vsel.active);
+ // Its ends clamped to the last character, `two`'s `o`, not its newline.
+ try testing.expect(back.body.cur_col <= 2 and back.body.vsel.col <= 2);
}
test "size is monotonic: growing is never refused, and a size once taken is taken again" {