0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.2273: wrong default when "pos" is changed with popup_atcursor()

Problem:    Wrong default when "pos" is changed with popup_atcursor().
Solution:   Adjust the default line and col when "pos" is not the default
            value. (#5151)
This commit is contained in:
Bram Moolenaar
2019-11-09 15:33:31 +01:00
parent 34059e7b67
commit 4dd8fe0b4f
8 changed files with 115 additions and 28 deletions

View File

@@ -4960,7 +4960,7 @@ prepare_tagpreview(
{
wp = popup_find_preview_window();
if (wp != NULL)
popup_set_wantpos_cursor(wp, wp->w_minwidth);
popup_set_wantpos_cursor(wp, wp->w_minwidth, NULL);
}
else if (use_popup != USEPOPUP_NONE)
{