commit 958e3ec201dfec4d4356708f360de75ff83f30cc
parent ce9cfdaa45f4cfd3e1234a09e9b68617cf291847
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Tue, 31 Mar 2020 19:40:23 +0200
feedback: show a message also when trying to copy an empty region
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/cut.c b/src/cut.c
@@ -541,8 +541,10 @@ void copy_marked_region(void)
openfile->mark = NULL;
refresh_needed = TRUE;
- if (topline == botline && top_x == bot_x)
+ if (topline == botline && top_x == bot_x) {
+ statusbar(_("Copied nothing"));
return;
+ }
/* Make the area that was marked look like a separate buffer. */
afterline = botline->next;