mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 10:55:40 +00:00
vim-patch:8.2.2413: crash when using :all while using a cmdline window
Problem: Crash when using :all while using a cmdline window. (Zdenek Dohnal)
Solution: Disallow :all from the cmdline window.
bb4b93ed85
Use test from lastest Vim instead.
This commit is contained in:
@@ -782,6 +782,10 @@ static void do_arg_all(int count, int forceit, int keep_tabs)
|
||||
|
||||
assert(firstwin != NULL); // satisfy coverity
|
||||
|
||||
if (cmdwin_type != 0) {
|
||||
emsg(_(e_cmdwin));
|
||||
return;
|
||||
}
|
||||
if (ARGCOUNT <= 0) {
|
||||
// Don't give an error message. We don't want it when the ":all" command is in the .vimrc.
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user