diff options
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 5253863c87..6e5e09fbf1 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -2973,6 +2973,11 @@ do_ecmd( // 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. */ |