]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1221: Wrong cursor pos when leaving Insert mode just after 'autoindent' v9.1.1221
authorzeertzjq <zeertzjq@outlook.com>
Tue, 18 Mar 2025 19:41:24 +0000 (20:41 +0100)
committerChristian Brabandt <cb@256bit.org>
Tue, 18 Mar 2025 19:41:24 +0000 (20:41 +0100)
commita3a7d10bfb9547991e04bcf12d1391deb8060754
treef5b35d74fa461cf0c7bc4746f52abe4e8e833ccd
parent18a6853a7627de231f0128237665112a0c8aaaf0
patch 9.1.1221: Wrong cursor pos when leaving Insert mode just after 'autoindent'

Problem:  Wrong cursor position and '^' mark when leaving Insert mode
          just after 'autoindent' and cursor on last char of line.
Solution: Don't move cursor to NUL when it wasn't moved to the left
          (zeertzjq).

fixes: #15581
related: neovim/neovim#30165 neovim/neovim#32943
closes: #16922

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/edit.c
src/testdir/test_edit.vim
src/version.c