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:
committed by
Bram Moolenaar
parent
5671f3f076
commit
11328bc7df
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user