diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-03-25 19:13:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-25 19:13:45 +0200 |
commit | a9c94f7bb05c53b1c81ec7e65f5df86947c12c58 (patch) | |
tree | 13cedb1f5c7500d889dbf30d8f9d1ce3057631b0 /test/functional/ui/cmdline_highlight_spec.lua | |
parent | ce5c2030bf69801c2585b60e69ba1a60f139ce86 (diff) | |
parent | 201a4ef11cc69d7d7c384db4d937d0d413811577 (diff) | |
download | rneovim-a9c94f7bb05c53b1c81ec7e65f5df86947c12c58.tar.gz rneovim-a9c94f7bb05c53b1c81ec7e65f5df86947c12c58.tar.bz2 rneovim-a9c94f7bb05c53b1c81ec7e65f5df86947c12c58.zip |
Merge #7881 from ZyX-I/fix-7876
Diffstat (limited to 'test/functional/ui/cmdline_highlight_spec.lua')
-rw-r--r-- | test/functional/ui/cmdline_highlight_spec.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/functional/ui/cmdline_highlight_spec.lua b/test/functional/ui/cmdline_highlight_spec.lua index ffb6a26aef..f9cec903a0 100644 --- a/test/functional/ui/cmdline_highlight_spec.lua +++ b/test/functional/ui/cmdline_highlight_spec.lua @@ -737,6 +737,22 @@ describe('Command-line coloring', function() feed('<CR><CR>') eq('', meths.get_var('out')) end) + it('does not crash when callback has caught not-a-editor-command exception', + function() + source([[ + function CaughtExc(cmdline) abort + try + gibberish + catch + " Do nothing + endtry + return [] + endfunction + ]]) + set_color_cb('CaughtExc') + start_prompt('1') + eq(1, meths.eval('1')) + end) end) describe('Ex commands coloring support', function() it('works', function() |