summaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 5e4d59840..15b695a4b 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -1212,11 +1212,8 @@ do_filter(line1, line2, eap, cmd, do_in, do_out)
vim_snprintf((char *)msg_buf, sizeof(msg_buf),
_("%ld lines filtered"), (long)linecount);
if (msg(msg_buf) && !msg_scroll)
- {
/* save message to display it after redraw */
- set_keep_msg(msg_buf);
- keep_msg_attr = 0;
- }
+ set_keep_msg(msg_buf, 0);
}
else
msgmore((long)linecount);
@@ -4910,11 +4907,8 @@ do_sub_msg(count_only)
vim_snprintf((char *)msg_buf + len, sizeof(msg_buf) - len,
_(" on %ld lines"), (long)sub_nlines);
if (msg(msg_buf))
- {
/* save message to display it after redraw */
- set_keep_msg(msg_buf);
- keep_msg_attr = 0;
- }
+ set_keep_msg(msg_buf, 0);
return TRUE;
}
if (got_int)