summaryrefslogtreecommitdiff
path: root/src/evalwindow.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-22 21:55:41 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-22 21:55:41 +0200
commit99ca9c4868bb1669706b9e3de9a9218bd11cc459 (patch)
tree5ee65a27548647c2ef50b21435433a6bd7299d9f /src/evalwindow.c
parent4f73b8e9cc83f647b34002554a8bdf9abec0a82f (diff)
downloadvim-git-99ca9c4868bb1669706b9e3de9a9218bd11cc459.tar.gz
patch 8.2.1727: a popup created with "cursorline" will ignore "firstline"v8.2.1727
Problem: A popup created with "cursorline" will ignore "firstline". Solution: When both "cursorline" and "firstline" are present put the cursor on "firstline". (closes #7000) Add the "winid" argument to getcurpos().
Diffstat (limited to 'src/evalwindow.c')
-rw-r--r--src/evalwindow.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/evalwindow.c b/src/evalwindow.c
index bc3bcba62..884f4091a 100644
--- a/src/evalwindow.c
+++ b/src/evalwindow.c
@@ -530,6 +530,22 @@ f_getwininfo(typval_T *argvars, typval_T *rettv)
return;
}
}
+#ifdef FEAT_PROP_POPUP
+ if (wparg != NULL)
+ {
+ tabnr = 0;
+ FOR_ALL_TABPAGES(tp)
+ {
+ tabnr++;
+ FOR_ALL_POPUPWINS_IN_TAB(tp, wp)
+ if (wp == wparg)
+ break;
+ }
+ d = get_win_info(wparg, tp == NULL ? 0 : tabnr, 0);
+ if (d != NULL)
+ list_append_dict(rettv->vval.v_list, d);
+ }
+#endif
}
/*