feedback: show a message also when trying to copy an empty region

master
Benno Schulenberg 2020-03-31 19:40:23 +02:00
parent ce9cfdaa45
commit 958e3ec201
1 changed files with 3 additions and 1 deletions

View File

@ -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;