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)
This commit is contained in:
Thiago de Arruda
2015-10-15 15:50:34 -03:00
parent f5b333f532
commit 091e7d033c

File diff suppressed because it is too large Load Diff