[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] [PATCH 3/3] files: add "Buffer" to prompt when mark is on b
From: |
Benno Schulenberg |
Subject: |
[Nano-devel] [PATCH 3/3] files: add "Buffer" to prompt when mark is on but not selection writing |
Date: |
Sun, 25 Feb 2018 19:57:23 +0100 |
From: Brand Huntsman <address@hidden>
This should make it more obvious what the "Selection" toggle does.
Signed-off-by: Brand Huntsman <address@hidden>
---
src/files.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/files.c b/src/files.c
index 0591f28a..6a696a0b 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 (only_the_region)
- /* 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.2