>From 8d9f069d9a8b696b5b9cfb30a28bdc9f3a419ae8 Mon Sep 17 00:00:00 2001 From: Brand Huntsman Date: Sun, 25 Feb 2018 04:03:20 -0700 Subject: [PATCH 3/3] add "Buffer" to prompt when a mark is set and selection writing is not enabled Signed-off-by: Brand Huntsman --- src/files.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/files.c b/src/files.c index 3d0312df..615525fe 100644 --- a/src/files.c +++ b/src/files.c @@ -2056,10 +2056,14 @@ int do_writeout(bool exiting, bool withprompt) * not when in restricted mode, because it would allow writing to * a file not specified on the command line. */ if (write_selection) - /* TRANSLATORS: The next six strings are prompts. */ + /* TRANSLATORS: The next nine strings are prompts. */ msg = (method == PREPEND) ? _("Prepend Selection to File") : (method == APPEND) ? _("Append Selection to File") : _("Write Selection to File"); + else if (openfile->mark) + msg = (method == PREPEND) ? _("Prepend Buffer to File") : + (method == APPEND) ? _("Append Buffer to File") : + _("Write Buffer to File"); else if (method != OVERWRITE) msg = (method == PREPEND) ? _("Prepend to File") : _("Append to File"); -- 2.16.1