]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0033: Insert mode not stopped if closing prompt buffer modifies hidden... v9.1.0033
authorzeertzjq <zeertzjq@outlook.com>
Tue, 16 Jan 2024 16:19:59 +0000 (17:19 +0100)
committerChristian Brabandt <cb@256bit.org>
Tue, 16 Jan 2024 16:21:04 +0000 (17:21 +0100)
commit96958366ad6159efe708b694055320ed19357e61
tree3a18368475fd3def1c844ad8de8056be233afe57
parent1a9aba8ad49ef77e69f429093d44888e7eafde7c
patch 9.1.0033: Insert mode not stopped if closing prompt buffer modifies hidden buffer

Problem:  Insert mode not stopped if an autocommand modifies a hidden
          buffer while closing a prompt buffer.
Solution: Don't set b_prompt_insert if stop_insert_mode is already set.
          (zeertzjq)

closes: #13872

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