aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormitchell <70453897+orbitalquark@users.noreply.github.com>2021-01-28 15:49:34 -0500
committermitchell <70453897+orbitalquark@users.noreply.github.com>2021-01-28 15:49:34 -0500
commit639c415d0d27796c6ef54ba1fd27a5b72a1ff328 (patch)
tree7718f369abe088ef7110289adc389799e3cc8e5f /test
parent8908625df80ac87c9d3db79d2f5f657fc75875fa (diff)
downloadtextadept-639c415d0d27796c6ef54ba1fd27a5b72a1ff328.tar.gz
textadept-639c415d0d27796c6ef54ba1fd27a5b72a1ff328.zip
Fixed navigating back through history from a print buffer.
Diffstat (limited to 'test')
-rw-r--r--test/test.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test.lua b/test/test.lua
index 91365563..14811e65 100644
--- a/test/test.lua
+++ b/test/test.lua
@@ -2847,6 +2847,18 @@ function test_history_per_view()
buffer:close(true)
end
+function test_history_print_buffer()
+ local tabs = ui.tabs
+ ui.tabs = true
+ ui.print('hi')
+ textadept.history.back()
+ assert(buffer._type ~= _L['[Message Buffer]'])
+ textadept.history.forward()
+ assert_equal(buffer._type, _L['[Message Buffer]'])
+ buffer:close()
+ ui.tabs = tabs -- restore
+end
+
function test_macro_record_play_save_load()
textadept.macros.save() -- should not do anything
textadept.macros.play() -- should not do anything