aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/scrollback_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2023-08-13 05:23:15 -0700
committerGitHub <noreply@github.com>2023-08-13 05:23:15 -0700
commit0fe921663f1be9e32afa66874fda1ef15142a47e (patch)
tree15c47c28238d0a3b84eb04e0401ccaf30f9daa43 /test/functional/terminal/scrollback_spec.lua
parent8179d68dc1a90f47bfb307d73e71adc98883ae00 (diff)
parent3fb372eba48796b5d0a7758f91e168be8e70e183 (diff)
downloadrneovim-0fe921663f1be9e32afa66874fda1ef15142a47e.tar.gz
rneovim-0fe921663f1be9e32afa66874fda1ef15142a47e.tar.bz2
rneovim-0fe921663f1be9e32afa66874fda1ef15142a47e.zip
Merge #15440 close 'shell' :terminal automatically
Diffstat (limited to 'test/functional/terminal/scrollback_spec.lua')
-rw-r--r--test/functional/terminal/scrollback_spec.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/terminal/scrollback_spec.lua b/test/functional/terminal/scrollback_spec.lua
index d20f5177b8..ba0b663285 100644
--- a/test/functional/terminal/scrollback_spec.lua
+++ b/test/functional/terminal/scrollback_spec.lua
@@ -514,7 +514,9 @@ describe("'scrollback' option", function()
-- _Global_ scrollback=-1 defaults :terminal to 10_000.
command('setglobal scrollback=-1')
- command('terminal')
+ -- Pass a command to prevent the terminal buffer from automatically
+ -- closing. The ':' command is just a no-op.
+ command('terminal :')
eq(10000, meths.get_option_value('scrollback', {}))
-- _Local_ scrollback=-1 in :terminal forces the _maximum_.