mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
vim-patch:7.4.1161
Problem: ":argadd" without argument is supposed to add the current buffer
name to the arglist.
Solution: Make it work as documented. (Coot, closes vim/vim#577)
2faa29f896
This commit is contained in:
@@ -1487,9 +1487,15 @@ do_arglist (
|
||||
char_u *p;
|
||||
int match;
|
||||
|
||||
/*
|
||||
* Collect all file name arguments in "new_ga".
|
||||
*/
|
||||
// Set default argument for ":argadd" command.
|
||||
if (what == AL_ADD && *str == NUL) {
|
||||
if (curbuf->b_ffname == NULL) {
|
||||
return FAIL;
|
||||
}
|
||||
str = curbuf->b_fname;
|
||||
}
|
||||
|
||||
// Collect all file name arguments in "new_ga".
|
||||
get_arglist(&new_ga, str);
|
||||
|
||||
if (what == AL_DEL) {
|
||||
|
Reference in New Issue
Block a user