From 1693f1f160e0567cf0bf1f26d3d61f577082cdfb Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 29 Oct 2024 16:04:14 -0700 Subject: bugfix #2 in search UI --- source_text_tests.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source_text_tests.lua') diff --git a/source_text_tests.lua b/source_text_tests.lua index db3ae44..7ed4caa 100644 --- a/source_text_tests.lua +++ b/source_text_tests.lua @@ -2087,3 +2087,17 @@ function test_search_downwards_from_end_of_line() edit.run_after_keychord(Editor_state, 'down', 'down') -- no crash end + +function test_search_downwards_from_final_pos_of_line() + App.screen.init{width=120, height=60} + Editor_state = edit.initialize_test_state() + Editor_state.lines = load_array{'abc', 'def', 'ghi'} + Text.redraw_all(Editor_state) + Editor_state.cursor1 = {line=1, pos=3} + Editor_state.screen_top1 = {line=1, pos=1} + edit.draw(Editor_state) + -- search for empty string + edit.run_after_keychord(Editor_state, 'C-f', 'f') + edit.run_after_keychord(Editor_state, 'down', 'down') + -- no crash +end -- cgit 1.4.1-2-gfad0 prehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log blame commit diff stats
path: root/021byte_addressing.cc
blob: 4af81c3eaea0f13f0a8da8ed242b1ea2f3010638 (plain) (tree)