Files
David Briscoe aa5ceb02d4 Prevent errors from undefined s:previous_context (#251)
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
2021-05-04 00:31:43 -07:00
..