diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-05-31 09:21:03 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-31 01:21:03 +0000 |
| commit | 54905409f1a6afb065d9989ea9d31e6721821b34 (patch) | |
| tree | fb534130354957a68fd337e9914f9e104536d37c /runtime/autoload/pythoncomplete.vim | |
| parent | 70cfeabe23bbeeb2995318cd1a5224d6069fad5b (diff) | |
| download | rneovim-54905409f1a6afb065d9989ea9d31e6721821b34.tar.gz rneovim-54905409f1a6afb065d9989ea9d31e6721821b34.tar.bz2 rneovim-54905409f1a6afb065d9989ea9d31e6721821b34.zip | |
vim-patch:9.2.0566: <C-w>f duplicates window if do_ecmd() is aborted (#40061)
Problem: If got_int is true when win_close() is called, it unexpectedly
fails in the branch that detects failure in apply_autocmds().
This causes wingotofile in do_window() to duplicate current
window when do_ecmd() is aborted with got_int.
Solution: Fix do_window() to save the got_int value before trying to
close the split window (Yohei Kojima).
Steps to reproduce:
1. run `touch a && touch .a.swp && echo a > b && vim b`
2. Type `<C-w>f`
3. In the warning dialogue, type `a` to abort
4. Current window is duplicated
closes: vim/vim#20382
https://github.com/vim/vim/commit/113e507cdd7be13607db81dcd6cd09aaedf93540
Co-authored-by: Yohei Kojima <yk@y-koj.net>
Diffstat (limited to 'runtime/autoload/pythoncomplete.vim')
0 files changed, 0 insertions, 0 deletions