diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-12-01 02:41:31 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-12-01 16:06:01 +0100 |
commit | 0f00f31cbd9b13b41a0d3d976d192bbbeac9cbe8 (patch) | |
tree | 5b360b1cb235501364a80b53a460ed5da4f013c3 /test/functional/ex_cmds | |
parent | feec926633e317577b0a3a63cc0fb352c0ba77b8 (diff) | |
download | rneovim-0f00f31cbd9b13b41a0d3d976d192bbbeac9cbe8.tar.gz rneovim-0f00f31cbd9b13b41a0d3d976d192bbbeac9cbe8.tar.bz2 rneovim-0f00f31cbd9b13b41a0d3d976d192bbbeac9cbe8.zip |
VimL/confirm(): Show dialog even if :silent
closes #8788
related #9034
Diffstat (limited to 'test/functional/ex_cmds')
-rw-r--r-- | test/functional/ex_cmds/swapfile_preserve_recover_spec.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/ex_cmds/swapfile_preserve_recover_spec.lua b/test/functional/ex_cmds/swapfile_preserve_recover_spec.lua index 577a26178a..3fcffd422f 100644 --- a/test/functional/ex_cmds/swapfile_preserve_recover_spec.lua +++ b/test/functional/ex_cmds/swapfile_preserve_recover_spec.lua @@ -11,6 +11,7 @@ local ok = helpers.ok local rmdir = helpers.rmdir local set_session = helpers.set_session local spawn = helpers.spawn +local nvim_async = helpers.nvim_async describe(':recover', function() before_each(clear) @@ -150,5 +151,12 @@ describe('swapfile detection', function() feed('e') -- Chose "Edit" at the swap dialog. feed('<c-c>') screen2:expect(expected_no_dialog) + + -- With API call and shortmess+=F + nvim_async('command', 'edit %') + screen2:expect{any=[[Found a swap file by the name ".*]] + ..[[Xtest_swapdialog_dir[/\].*]]..testfile..[[%.swp"]]} + feed('e') -- Chose "Edit" at the swap dialog. + feed('<c-c>') end) end) |