From 958e3ec201dfec4d4356708f360de75ff83f30cc Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 31 Mar 2020 19:40:23 +0200 Subject: [PATCH] feedback: show a message also when trying to copy an empty region --- src/cut.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cut.c b/src/cut.c index e70272a5..6c80e081 100644 --- 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;