diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-08-13 05:23:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-13 05:23:15 -0700 |
commit | 0fe921663f1be9e32afa66874fda1ef15142a47e (patch) | |
tree | 15c47c28238d0a3b84eb04e0401ccaf30f9daa43 /test/functional/terminal/scrollback_spec.lua | |
parent | 8179d68dc1a90f47bfb307d73e71adc98883ae00 (diff) | |
parent | 3fb372eba48796b5d0a7758f91e168be8e70e183 (diff) | |
download | rneovim-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.lua | 4 |
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_. |