ins_compl_new_leader(void)
{
int cur_cot_flags = get_cot_flags();
+ int save_w_wrow;
+ int save_w_leftcol;
ins_compl_del_pum();
ins_compl_delete();
out_flush_cursor(FALSE, FALSE);
}
#endif
+ save_w_wrow = curwin->w_wrow;
+ save_w_leftcol = curwin->w_leftcol;
compl_restarting = TRUE;
- if (ins_complete(Ctrl_N, TRUE) == FAIL)
+ if (ins_complete(Ctrl_N, FALSE) == FAIL)
compl_cont_status = 0;
compl_restarting = FALSE;
}
compl_enter_selects = !compl_used_match && compl_selected_item != -1;
// Show the popup menu with a different set of matches.
- ins_compl_show_pum();
+ if (!compl_interrupted)
+ show_pum(save_w_wrow, save_w_leftcol);
// Don't let Enter select the original text when there is no popup menu.
if (compl_match_array == NULL)