summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 724238179..4a4e89f6b 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -2152,20 +2152,16 @@ do_one_cmd(cmdlinep, sourcing,
*/
if (!global_busy && ea.line1 > ea.line2)
{
- if (sourcing || exmode_active)
- {
- errormsg = (char_u *)_("E493: Backwards range given");
- goto doend;
- }
- else
+ if (msg_silent == 0)
{
- int msg_silent_save = msg_silent;
-
- msg_silent = 0;
+ if (sourcing || exmode_active)
+ {
+ errormsg = (char_u *)_("E493: Backwards range given");
+ goto doend;
+ }
if (ask_yesno((char_u *)
_("Backwards range given, OK to swap"), FALSE) != 'y')
- goto doend;
- msg_silent = msg_silent_save;
+ goto doend;
}
lnum = ea.line1;
ea.line1 = ea.line2;