aboutsummaryrefslogtreecommitdiffstats
path: root/tests/scroll.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-08 12:39:34 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-08 12:39:34 -0500
commit6abfaac01daa6f1ba959c8e522d4fd439babaaee (patch)
treed38f20e67208fe417f5419d9864cffd95c464982 /tests/scroll.rs
parentd743018c4c0ae459a9586898a4dca132eecad3cb (diff)
downloadvt100-rust-6abfaac01daa6f1ba959c8e522d4fd439babaaee.tar.gz
vt100-rust-6abfaac01daa6f1ba959c8e522d4fd439babaaee.zip
ignore the scroll region when moving if we're already outside of it
Diffstat (limited to 'tests/scroll.rs')
-rw-r--r--tests/scroll.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/scroll.rs b/tests/scroll.rs
index 1aa9377..2291ca3 100644
--- a/tests/scroll.rs
+++ b/tests/scroll.rs
@@ -33,6 +33,9 @@ fn scroll_regions() {
assert_eq!(parser.screen().cursor_position(), (9, 49));
parser.process(b"\x1b[23d");
assert_eq!(parser.screen().cursor_position(), (22, 49));
+ parser.process(b"\n");
+ assert_eq!(parser.screen().cursor_position(), (23, 49));
+ assert_eq!(parser.screen().contents(), "1\n2\n3\n4\n5\n6\n7\n8\n9\n\n10\n11\n12\n13\n14\n\n\n15\n16\n17\n21\n22\n23\n24");
}
#[test]