updated for version 7.0g03
diff --git a/src/edit.c b/src/edit.c
index 1cf2808..2ff1722 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -4150,6 +4150,15 @@
 
 	/* display the updated popup menu */
 	ins_compl_show_pum();
+#ifdef FEAT_GUI
+	if (gui.in_use)
+	{
+	    /* Show the cursor after the match, not after the redrawn text. */
+	    setcursor();
+	    out_flush();
+	    gui_update_cursor(FALSE, FALSE);
+	}
+#endif
 
 	/* Delete old text to be replaced, since we're still searching and
 	 * don't want to match ourselves!  */