Mercurial > vim
comparison src/popupwin.c @ 19312:18fc30542bf5 v8.2.0214
patch 8.2.0214: a popup window with a terminal can be made hidden
Commit: https://github.com/vim/vim/commit/2e6638d5f03ae183999c726ba63e528d556342c0
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 5 21:07:18 2020 +0100
patch 8.2.0214: a popup window with a terminal can be made hidden
Problem: A popup window with a terminal can be made hidden.
Solution: Disallow hiding a terminal popup.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 05 Feb 2020 21:15:04 +0100 |
parents | 104c163131cc |
children | b70fbf3f0e0b |
comparison
equal
deleted
inserted
replaced
19311:8dec49d5737c | 19312:18fc30542bf5 |
---|---|
2369 } | 2369 } |
2370 | 2370 |
2371 void | 2371 void |
2372 popup_hide(win_T *wp) | 2372 popup_hide(win_T *wp) |
2373 { | 2373 { |
2374 #ifdef FEAT_TERMINAL | |
2375 if (error_if_term_popup_window()) | |
2376 return; | |
2377 #endif | |
2374 if ((wp->w_popup_flags & POPF_HIDDEN) == 0) | 2378 if ((wp->w_popup_flags & POPF_HIDDEN) == 0) |
2375 { | 2379 { |
2376 wp->w_popup_flags |= POPF_HIDDEN; | 2380 wp->w_popup_flags |= POPF_HIDDEN; |
2377 // Do not decrement b_nwindows, we still reference the buffer. | 2381 // Do not decrement b_nwindows, we still reference the buffer. |
2378 redraw_all_later(NOT_VALID); | 2382 redraw_all_later(NOT_VALID); |