diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-08 12:39:34 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-08 12:39:34 -0500 |
commit | 6abfaac01daa6f1ba959c8e522d4fd439babaaee (patch) | |
tree | d38f20e67208fe417f5419d9864cffd95c464982 /tests | |
parent | d743018c4c0ae459a9586898a4dca132eecad3cb (diff) | |
download | vt100-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')
-rw-r--r-- | tests/scroll.rs | 3 |
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] |