diff options
author | Gregory Anders <greg@gpanders.com> | 2021-08-21 18:23:10 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-21 17:23:10 -0700 |
commit | a90513c24bd8f789fba980509a4bdd1d7fc890ec (patch) | |
tree | f9fde7550a74e0ebc2bbfe6b9be67386e4258959 /test | |
parent | 50b30de2007961718cc11811a30f6b0f35c3c793 (diff) | |
download | rneovim-a90513c24bd8f789fba980509a4bdd1d7fc890ec.tar.gz rneovim-a90513c24bd8f789fba980509a4bdd1d7fc890ec.tar.bz2 rneovim-a90513c24bd8f789fba980509a4bdd1d7fc890ec.zip |
feat(keywordprg): use :terminal for external commands #15398
Open external 'keywordprg' commands in a :terminal in a new tab. <Esc> is
mapped to stop the job and close the buffer.
Closes #2995
Closes #2761
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/normal/K_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/normal/K_spec.lua b/test/functional/normal/K_spec.lua index 174313d80e..40f36491e4 100644 --- a/test/functional/normal/K_spec.lua +++ b/test/functional/normal/K_spec.lua @@ -1,6 +1,6 @@ local helpers = require('test.functional.helpers')(after_each) -local eq, clear, eval, feed = - helpers.eq, helpers.clear, helpers.eval, helpers.feed +local eq, clear, eval, feed, retry = + helpers.eq, helpers.clear, helpers.eval, helpers.feed, helpers.retry describe('K', function() local test_file = 'K_spec_out' @@ -31,7 +31,7 @@ describe('K', function() -- K on the text "K_spec_out" resolves to `!echo fnord >> K_spec_out`. feed('i'..test_file..'<ESC>K') - feed('<CR>') -- Press ENTER + retry(nil, nil, function() eq(1, eval('filereadable("'..test_file..'")')) end) eq({'fnord'}, eval("readfile('"..test_file.."')")) end) |