From ed7becfb4768245f8c76325d86276940df07472e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 8 Oct 2025 01:40:05 +0900 Subject: Go to the closest match when disabling raw mode --- test/test_raw.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'test/test_raw.rb') diff --git a/test/test_raw.rb b/test/test_raw.rb index eb0df4de..63b62cc7 100644 --- a/test/test_raw.rb +++ b/test/test_raw.rb @@ -79,5 +79,27 @@ class TestRaw < TestInteractive tmux.send_keys :Space tmux.until { assert_includes it, '[[]] 11' } + + tmux.send_keys 'C-u', '5' + tmux.until { assert_includes it, '> 5' } + + tmux.send_keys 'C-x', 'C-p', 'C-p' + tmux.until do + assert_includes it, '> 25' + assert_includes it, '▖ 24' + end + + tmux.send_keys 'C-x' + tmux.until do + assert_includes it, '> 25' + assert_includes it, '▌ 15' + end + + # 35 is the closest match in raw mode + tmux.send_keys 'C-x', :Up, :Up, :Up, :Up, :Up, :Up, 'C-x' + tmux.until do + assert_includes it, '> 35' + assert_includes it, '▌ 25' + end end end -- cgit v1.2.3