mirror of
https://github.com/neovim/neovim.git
synced 2026-07-22 00:51:33 +00:00
feat(ui): no delay for errors with ext_messages (#33693)
Problem: Delay for reading a message may be unwanted for ext_messages,
and can be done by the implementation. Empty completion source
error message is not distinguishable as such.
Solution: Only delay without ext_messages enabled. Emit empty completion
source message as an error.
This commit is contained in:
@@ -2334,7 +2334,8 @@ func Test_thesaurusfunc_callback()
|
||||
new
|
||||
call setline(1, 'sun')
|
||||
LET g:TsrFunc1Args = []
|
||||
call feedkeys("A\<C-X>\<C-T>\<Esc>", "x")
|
||||
" Nvim: message is an actual error rather than message with error highlight
|
||||
silent! call feedkeys("A\<C-X>\<C-T>\<Esc>", "x")
|
||||
call assert_equal('sun', getline(1))
|
||||
call assert_equal([], g:TsrFunc1Args)
|
||||
set thesaurusfunc=function('g:TsrFunc1',\ [23])
|
||||
|
||||
Reference in New Issue
Block a user