neovim/test/functional/insert
d10n 69e9cda5ac i_CTRL-O: fix :startinsert at end of line (#6963)
The gchar_cursor() == NUL check is already done in ins_ctrl_o.
ins_esc changes gchar_cursor() so this if block is probably never
entered.

Issue:

Pressing CTRL-O in insert mode at the end of the line and typing
:startinsert moves the cursor 1 column back, when I expect the cursor
to remain at the end of the line

This is a regression from Vim behavior. Since at least Vim version 7.0,
Vim returns you to insert mode at the end of the line.

091e7d033c is the first bad neovim commit

Steps to reproduce using `nvim -u NORC`:
`aaaa<C-o>:startinsert<CR>`

Fixes #6962
2017-07-08 12:50:58 +02:00
..
ctrl_o_spec.lua i_CTRL-O: fix :startinsert at end of line (#6963) 2017-07-08 12:50:58 +02:00
ctrl_r_spec.lua ops: fix i<c-r> with multi-byte text (#6524) 2017-04-15 11:19:40 +02:00
last_inserted_spec.lua edit.c: CTRL-SPC: Insert previously-inserted text. #6090 2017-02-28 01:16:18 +01:00