diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-30 22:32:34 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-30 22:32:34 +0200 |
commit | c6896e20f8e7e8d9fe0fd1ad333aae1130d714e1 (patch) | |
tree | 4155d494ff12b6a2caf736f8f26e4edb826cb0c1 /src/popupwin.c | |
parent | 402502d0e4019ca97330eff40b9fb13736304896 (diff) | |
download | vim-git-8.1.1431.tar.gz |
patch 8.1.1431: popup window listed as "Scratch"v8.1.1431
Problem: Popup window listed as "Scratch".
Solution: List them as "Popup".
Diffstat (limited to 'src/popupwin.c')
-rw-r--r-- | src/popupwin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/popupwin.c b/src/popupwin.c index ef4609add..f828d9187 100644 --- a/src/popupwin.c +++ b/src/popupwin.c @@ -550,6 +550,7 @@ f_popup_hide(typval_T *argvars, typval_T *rettv UNUSED) if (wp != NULL && (wp->w_popup_flags & POPF_HIDDEN) == 0) { wp->w_popup_flags |= POPF_HIDDEN; + --wp->w_buffer->b_nwindows; redraw_all_later(NOT_VALID); } } @@ -566,6 +567,7 @@ f_popup_show(typval_T *argvars, typval_T *rettv UNUSED) if (wp != NULL && (wp->w_popup_flags & POPF_HIDDEN) != 0) { wp->w_popup_flags &= ~POPF_HIDDEN; + ++wp->w_buffer->b_nwindows; redraw_all_later(NOT_VALID); } } |