]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1295: clientserver: does not handle :stopinsert correctly v9.1.1295
authorChristian Brabandt <cb@256bit.org>
Sat, 12 Apr 2025 16:09:28 +0000 (18:09 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 12 Apr 2025 16:09:28 +0000 (18:09 +0200)
commitcf665ccd3771d59584f2f44a7c644c017a2ad84f
tree908ffcb62bdc4dbf2f6f1216443eff080f40f4c2
parent6f6c0dba9f578787af0f259a832c972807a884cd
patch 9.1.1295: clientserver: does not handle :stopinsert correctly

Problem:  clientserver: When in insert mode, a :stopinsert command
          is not correctly processed (user202729)
Solution: If the :stopinsert command is received while waiting for
          input, stuff the NOP key into the type-ahead buffer and
          detect that :stopinsert was used in edit() so that the
          cursor position is decremented.

fixes: #17016
closes: #17024

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/edit.c
src/ex_docmd.c
src/testdir/test_clientserver.vim
src/version.c