comparison src/tag.c @ 17644:daa1dea1c1b3 v8.1.1819

patch 8.1.1819: :pedit does not work with a popup preview window commit https://github.com/vim/vim/commit/1b6d9c4215a56f3dda4df6e05d655c853551ffbd Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 5 21:52:04 2019 +0200 patch 8.1.1819: :pedit does not work with a popup preview window Problem: :pedit does not work with a popup preview window. Solution: Avoid aborting with an error. (fixes https://github.com/vim/vim/issues/4777) Also double check that after prepare_tagpreview() the current window is not a popup window.
author Bram Moolenaar <Bram@vim.org>
date Mon, 05 Aug 2019 22:00:06 +0200
parents 5278e5a2a4e3
children 9efb4dda9720
comparison
equal deleted inserted replaced
17643:dfc6ba5db4ec 17644:daa1dea1c1b3
3691 win_enter(curwin_save, TRUE); 3691 win_enter(curwin_save, TRUE);
3692 popup_close(wp->w_id); 3692 popup_close(wp->w_id);
3693 } 3693 }
3694 #endif 3694 #endif
3695 } 3695 }
3696 #if defined(FEAT_QUICKFIX) && defined(FEAT_TEXT_PROP)
3697 if (WIN_IS_POPUP(curwin))
3698 // something went wrong, still in popup, but it can't have focus
3699 win_enter(firstwin, TRUE);
3700 #endif
3696 3701
3697 erret: 3702 erret:
3698 #if defined(FEAT_QUICKFIX) 3703 #if defined(FEAT_QUICKFIX)
3699 g_do_tagpreview = 0; /* For next time */ 3704 g_do_tagpreview = 0; /* For next time */
3700 #endif 3705 #endif