diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-10-15 15:50:34 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-10-26 10:52:02 -0300 |
commit | 091e7d033cbf0f4da068292ce4ac934f1c3dd91e (patch) | |
tree | f80ea74bcfebb744e631cb79376fd08f59d12919 /test/functional/eval/msgpack_functions_spec.lua | |
parent | f5b333f532082be88a113fa3c4c337d0b672c2ab (diff) | |
download | rneovim-091e7d033cbf0f4da068292ce4ac934f1c3dd91e.tar.gz rneovim-091e7d033cbf0f4da068292ce4ac934f1c3dd91e.tar.bz2 rneovim-091e7d033cbf0f4da068292ce4ac934f1c3dd91e.zip |
edit: Move most code from `edit()` to `insert_{enter,check,execute}`
Refactor insert mode to use `state_enter` as an event loop:
- Move o_lnum(static variable) outside function
- Move code before the insert mode loop into `insert_enter`
- Move code before `safe_vgetc()` call into `insert_check`
- Move code after `safe_vgetc()` call into `insert_execute`
- Remove doESCkey label and handle insert mode repeating in the `insert_enter`
function
- Remove do_intr label(this is not the place for platform-specific interrupt
charts)
Diffstat (limited to 'test/functional/eval/msgpack_functions_spec.lua')
0 files changed, 0 insertions, 0 deletions