aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_stringbuffer.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-12-12 08:07:55 +0800
committerGitHub <noreply@github.com>2025-12-12 08:07:55 +0800
commit18642a63be4f9c196f758cc365443231759faaae (patch)
tree9877806d85ed138a35ed2b5a53363ee64eccc06d /runtime/lua/vim/_stringbuffer.lua
parent054eaf8493cbcf35ad386675fcaa0cc38d6b63e7 (diff)
downloadrneovim-18642a63be4f9c196f758cc365443231759faaae.tar.gz
rneovim-18642a63be4f9c196f758cc365443231759faaae.tar.bz2
rneovim-18642a63be4f9c196f758cc365443231759faaae.zip
vim-patch:9.1.1969: Wrong cursor position after formatting with long 'formatprg' (#36918)
Problem: Wrong cursor position after formatting with long 'formatprg'. Solution: Don't show hit-enter prompt when there are stuffed characters. Previously a stuffed character at the hit-enter prompt will dismiss the prompt immediately and be put in the typeahead buffer, which leads to incorrect behavior as the typeahead buffer is processed after the stuff buffers. Using vungetc() when KeyStuffed is TRUE can fix this problem, but since the hit-enter prompt isn't visible anyway (and is likely not desired here), just skip the prompt instead, which also avoids a wait when using "wait" instead of "hit-enter" in 'messagesopt'. fixes: vim/vim#18905 closes: vim/vim#18906 https://github.com/vim/vim/commit/50325c3d591806c57b04512dc103214acd0f2f18
Diffstat (limited to 'runtime/lua/vim/_stringbuffer.lua')
0 files changed, 0 insertions, 0 deletions