diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2020-04-26 23:57:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-26 23:57:37 -0400 |
commit | 34ad1ea36637845adb14c579587168126d3210e3 (patch) | |
tree | 7342478885db7348b3925739f5a0320b48121102 /test/functional | |
parent | 5f41717838f4cd9d1087e452640ba554500279ab (diff) | |
parent | 978a6bcaf2b98b3c89381a3eacf642b4f61db033 (diff) | |
download | rneovim-34ad1ea36637845adb14c579587168126d3210e3.tar.gz rneovim-34ad1ea36637845adb14c579587168126d3210e3.tar.bz2 rneovim-34ad1ea36637845adb14c579587168126d3210e3.zip |
Merge #12155 ':ls filter by terminal, lastused'
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/ex_cmds/ls_spec.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/ex_cmds/ls_spec.lua b/test/functional/ex_cmds/ls_spec.lua index f7bacd7386..9853084c47 100644 --- a/test/functional/ex_cmds/ls_spec.lua +++ b/test/functional/ex_cmds/ls_spec.lua @@ -31,6 +31,18 @@ describe(':ls', function() -- Terminal buffer [F]inished. eq('\n 3 %aF', string.match(ls_output, '\n *3....')) end) + + retry(nil, 5000, function() + local ls_output = eval('execute("ls R")') + -- Just the [R]unning terminal buffer. + eq('\n 2 #aR ', string.match(ls_output, '^\n *2 ... ')) + end) + + retry(nil, 5000, function() + local ls_output = eval('execute("ls F")') + -- Just the [F]inished terminal buffer. + eq('\n 3 %aF ', string.match(ls_output, '^\n *3 ... ')) + end) end) end) |