feedback: give a clearer message when trying to justify an empty region

Also, increase the level of the message, as trying to justify an empty
selection is a user error.
master
Benno Schulenberg 2020-03-10 15:58:30 +01:00
parent c65fa25ce2
commit 70a765e387
1 changed files with 1 additions and 1 deletions

View File

@ -1759,7 +1759,7 @@ void do_justify(bool full_justify)
/* When the marked region is empty, do nothing. */
if (startline == endline && start_x == end_x) {
statusline(NOTICE, _("Nothing changed"));
statusline(ALERT, _("Selection is empty"));
discard_until(openfile->undotop->next);
return;
}