aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/buf.lua
diff options
context:
space:
mode:
authorshadmansaleh <shadmansaleh3@gmail.com>2021-06-20 23:07:04 +0600
committershadmansaleh <shadmansaleh3@gmail.com>2021-06-21 13:07:05 +0600
commitb4ac8780267d9164a84deaec27fbc6260f765514 (patch)
treee9a4454533f545ff30858e3414be828a1c64b172 /runtime/lua/vim/lsp/buf.lua
parentb4a216f7ed417e2f1afa321883da1f9fac921aac (diff)
downloadrneovim-b4ac8780267d9164a84deaec27fbc6260f765514.tar.gz
rneovim-b4ac8780267d9164a84deaec27fbc6260f765514.tar.bz2
rneovim-b4ac8780267d9164a84deaec27fbc6260f765514.zip
fix(source): Source giving E484 & parsing error at line 1 for lua files
It's happening because do_source is only expected to return FAIL when it was unable to open file . But `nlua_exec_file` returns fail for parsing and execution error too . Those errors are emitted through `nlua_error`. So now return value of nlua_exec_file is ignored like do_cmdline. It now only returns fail when it was unable to open file that check is done before calling nlua_exec_file or do_cmdline. Errors in nlua_exec_file are still directly emitted through nlua_error like before.
Diffstat (limited to 'runtime/lua/vim/lsp/buf.lua')
0 files changed, 0 insertions, 0 deletions