mirror of
https://github.com/prabirshrestha/asyncomplete.vim.git
synced 2025-12-14 20:35:41 +01:00
Prevent errors processing textchanged that don't come from insert mode.
When using asyncomplete with vim-ripple, I get these errors:
Error detected while processing TextChangedI Autocommands for "*"..function <SNR>43_on_text_changed_i[1]..<SNR>43_maybe_notify_on_change:
line 15:
E121: Undefined variable: s:previous_context
Error detected while processing InsertLeave Autocommands for "*"..function <SNR>43_on_insert_leave:
line 1:
E108: No such variable: "s:previous_context"
ripple uses :startinsert, but I can't replicate the error with just that
command. Not sure what's wrong, but this seems like a reasonable fix.
Plugins
=======
asyncomplete
ripple
Repro
=====
Hit CR when on a blank line:
gvim +"RippleCreate lua"
down arrow
CR