Mercurial > vim
diff src/ex_docmd.c @ 557:862863033fdd v7.0158
updated for version 7.0158
author | vimboss |
---|---|
date | Wed, 23 Nov 2005 21:25:05 +0000 |
parents | c6296b0ad9ea |
children | c85bf6a4999b |
line wrap: on
line diff
--- 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 - { - int msg_silent_save = msg_silent; - - msg_silent = 0; + if (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;