From f9c176503b76338a32f846dd76c70074a9cdf9c9 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 28 Jan 2016 17:54:09 +0100 Subject: fixup: clarified :EX behaviour on modified unnamed files * when the unnamed file was modified, :EW would just succeed discarding all changes to the unnamed file. * Instead now, :EX behaves like the EW$ command on each modified buffer including the unnamed file. * In other words, :EX will fail if there is a modified unnamed file * still refers to #4 --- src/parser.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/parser.cpp') diff --git a/src/parser.cpp b/src/parser.cpp index 5d78aaf..a9797b6 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -2272,9 +2272,11 @@ StateECommand::custom(gchar chr) * changes and exit. * * When colon-modified, is ignored and EX - * will instead immediately save all modified buffers \(em + * will instead immediately try to save all modified buffers \(em * this can of course be reversed using rubout. - * \(lq:EX\fB$$\fP\(rq is thus the usual interactive + * Saving all buffers can fail, e.g. if the unnamed file + * is modified or if there is an IO error. + * \(lq:EX\fB$$\fP\(rq is nevertheless the usual interactive * command sequence to exit while saving all modified * buffers. */ -- cgit v1.2.3