1
0
forked from aniani/vim

patch 8.2.3300: Lua: can only execute on Vim command at a time

Problem:    Lua: can only execute on Vim command at a time.  Not easy to get
            the Vim version.
Solution:   Make vim.command() accept multiple lines.  Add vim.version().
            (Yegappan Lakshmanan, closes #8716)
This commit is contained in:
Yegappan Lakshmanan
2021-08-06 21:34:38 +02:00
committed by Bram Moolenaar
parent 5671f3f076
commit 11328bc7df
7 changed files with 124 additions and 5 deletions

View File

@@ -84,7 +84,8 @@ func Test_shell_options()
r !echo hello
call assert_equal('hello', substitute(getline(2), '\W', '', 'g'), e[0])
catch
call assert_report('Failed to run shell command, shell: ' .. e[0])
call assert_report('Failed to run shell command, shell: ' .. e[0]
\ .. ', caught ' .. v:exception)
finally
bwipe!
endtry