mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
patch 8.1.1813: ATTENTION prompt for a preview popup window
Problem: ATTENTION prompt for a preview popup window. Solution: Close the popup window if aborting the buffer load. Avoid getting the ATTENTION dialog.
This commit is contained in:
16
src/tag.c
16
src/tag.c
@@ -3663,7 +3663,7 @@ jumpto_tag(
|
||||
if (g_do_tagpreview != 0
|
||||
&& curwin != curwin_save && win_valid(curwin_save))
|
||||
{
|
||||
/* Return cursor to where we were */
|
||||
// Return cursor to where we were
|
||||
validate_cursor();
|
||||
redraw_later(VALID);
|
||||
win_enter(curwin_save, TRUE);
|
||||
@@ -3675,11 +3675,23 @@ jumpto_tag(
|
||||
else
|
||||
{
|
||||
--RedrawingDisabled;
|
||||
if (postponed_split) /* close the window */
|
||||
got_int = FALSE; // don't want entering window to fail
|
||||
|
||||
if (postponed_split) // close the window
|
||||
{
|
||||
win_close(curwin, FALSE);
|
||||
postponed_split = 0;
|
||||
}
|
||||
#if defined(FEAT_QUICKFIX) && defined(FEAT_TEXT_PROP)
|
||||
else if (WIN_IS_POPUP(curwin))
|
||||
{
|
||||
win_T *wp = curwin;
|
||||
|
||||
if (win_valid(curwin_save))
|
||||
win_enter(curwin_save, TRUE);
|
||||
popup_close(wp->w_id);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
erret:
|
||||
|
Reference in New Issue
Block a user