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)
diff --git a/src/testdir/test_shell.vim b/src/testdir/test_shell.vim
index f5a3e98..bdc6631 100644
--- a/src/testdir/test_shell.vim
+++ b/src/testdir/test_shell.vim
@@ -84,7 +84,8 @@
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