summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-07-29 08:43:53 +0000
committerBram Moolenaar <Bram@vim.org>2004-07-29 08:43:53 +0000
commit269ec658f0fad22b2bf9f71b06a4e6e10277f0e5 (patch)
tree450e57b10e8afd1c2a0c49e698a73d508781f67c /src/gui.c
parent5eb86f91992f5291b8b472d3e1be1888508777e6 (diff)
updated for version 7.0013
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui.c b/src/gui.c
index c8930d8bff..9b33f9d398 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -4586,12 +4586,14 @@ gui_do_findrepl(flags, find_text, repl_text, down)
ga_concat(&ga, (char_u *)"/");
concat_esc(&ga, repl_text, '/'); /* escape slashes */
ga_concat(&ga, (char_u *)"/g");
+ ga_append(&ga, NUL);
do_cmdline_cmd(ga.ga_data);
}
else
{
/* Search for the next match. */
i = msg_scroll;
+ ga_append(&ga, NUL);
do_search(NULL, down ? '/' : '?', ga.ga_data, 1L,
SEARCH_MSG + SEARCH_MARK);
msg_scroll = i; /* don't let an error message set msg_scroll */