mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
vim-patch:9.0.0085: ":write" fails after ":file name" and the ":edit"
Problem: ":write" fails after ":file name" and the ":edit".
Solution: Reset BF_NOTEDITED when using ":edit". (closes vim/vim#10790)
1f0dc5e84f
This commit is contained in:
@@ -2725,6 +2725,12 @@ int do_ecmd(int fnum, char *ffname, char *sfname, exarg_T *eap, linenr_T newlnum
|
||||
// Assume success now
|
||||
retval = OK;
|
||||
|
||||
// If the file name was changed, reset the not-edit flag so that ":write"
|
||||
// works.
|
||||
if (!other_file) {
|
||||
curbuf->b_flags &= ~BF_NOTEDITED;
|
||||
}
|
||||
|
||||
/*
|
||||
* Check if we are editing the w_arg_idx file in the argument list.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user