summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/search.c b/src/search.c
index 8bb5f3d97..0aebea4f9 100644
--- a/src/search.c
+++ b/src/search.c
@@ -2675,14 +2675,8 @@ showmatch(
showruler(FALSE);
setcursor();
cursor_on(); /* make sure that the cursor is shown */
- out_flush();
-#ifdef FEAT_GUI
- if (gui.in_use)
- {
- gui_update_cursor(TRUE, FALSE);
- gui_mch_flush();
- }
-#endif
+ out_flush_cursor(TRUE, FALSE);
+
/* Restore dollar_vcol(), because setcursor() may call curs_rows()
* which resets it if the matching position is in a previous line
* and has a higher column number. */