summaryrefslogtreecommitdiff
path: root/src/popupwin.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-15 14:14:31 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-15 14:14:31 +0200
commitfc06cbbf8601a453b4a62a17558821add09f863f (patch)
tree3116cc36b44089112791a9678ff32e0b51b7c056 /src/popupwin.c
parent1755ec4278ee6dccdbb8030fd5a4cf6054211f81 (diff)
downloadvim-git-fc06cbbf8601a453b4a62a17558821add09f863f.tar.gz
patch 8.1.1537: using "tab" for popup window can be confusingv8.1.1537
Problem: Using "tab" for popup window can be confusing. Solution: Use "tabpage". (Hirohito Higashi, closes #4532)
Diffstat (limited to 'src/popupwin.c')
-rw-r--r--src/popupwin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/popupwin.c b/src/popupwin.c
index 5265b4b9b..594fca8a0 100644
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -748,8 +748,8 @@ popup_create(typval_T *argvars, typval_T *rettv, create_type_T type)
// Avoid that 'buftype' is reset when this buffer is entered.
buf->b_p_initialized = TRUE;
- if (dict_find(d, (char_u *)"tab", -1) != NULL)
- nr = (int)dict_get_number(d, (char_u *)"tab");
+ if (dict_find(d, (char_u *)"tabpage", -1) != NULL)
+ nr = (int)dict_get_number(d, (char_u *)"tabpage");
else if (type == TYPE_NOTIFICATION)
nr = -1; // notifications are global by default
else
@@ -757,7 +757,7 @@ popup_create(typval_T *argvars, typval_T *rettv, create_type_T type)
if (nr == 0)
{
- // popup on current tab
+ // popup on current tab page
wp->w_next = curtab->tp_first_popupwin;
curtab->tp_first_popupwin = wp;
}
@@ -1228,7 +1228,7 @@ not_in_popup_window()
/*
* Reset all the POPF_HANDLED flags in global popup windows and popup windows
- * in the current tab.
+ * in the current tab page.
*/
void
popup_reset_handled()