Mercurial > vim
comparison src/macros.h @ 19542:9e428147e4ee v8.2.0328
patch 8.2.0328: no redraw when leaving term-normal mode in popup terminal
Commit: https://github.com/vim/vim/commit/e52e0c89d1a6305beca3c01f89a4892dcb43bc71
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 28 22:20:10 2020 +0100
patch 8.2.0328: no redraw when leaving term-normal mode in popup terminal
Problem: No redraw when leaving terminal-normal mode in a terminal popup
window.
Solution: Redraw the popup window. (closes #5708)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 28 Feb 2020 22:30:09 +0100 |
parents | ebeeb4b4a1fa |
children | 804322d6c6ba |
comparison
equal
deleted
inserted
replaced
19541:80dd4d7df929 | 19542:9e428147e4ee |
---|---|
342 // Whether a command index indicates a user command. | 342 // Whether a command index indicates a user command. |
343 #define IS_USER_CMDIDX(idx) ((int)(idx) < 0) | 343 #define IS_USER_CMDIDX(idx) ((int)(idx) < 0) |
344 | 344 |
345 // Give an error in curwin is a popup window and evaluate to TRUE. | 345 // Give an error in curwin is a popup window and evaluate to TRUE. |
346 #ifdef FEAT_PROP_POPUP | 346 #ifdef FEAT_PROP_POPUP |
347 # define WIN_IS_POPUP(wp) ((wp)->w_popup_flags != 0) | |
347 # define ERROR_IF_POPUP_WINDOW error_if_popup_window(FALSE) | 348 # define ERROR_IF_POPUP_WINDOW error_if_popup_window(FALSE) |
348 # define ERROR_IF_ANY_POPUP_WINDOW error_if_popup_window(TRUE) | 349 # define ERROR_IF_ANY_POPUP_WINDOW error_if_popup_window(TRUE) |
349 #else | 350 #else |
351 # define WIN_IS_POPUP(wp) 0 | |
350 # define ERROR_IF_POPUP_WINDOW 0 | 352 # define ERROR_IF_POPUP_WINDOW 0 |
351 # define ERROR_IF_ANY_POPUP_WINDOW 0 | 353 # define ERROR_IF_ANY_POPUP_WINDOW 0 |
352 #endif | 354 #endif |
353 #if defined(FEAT_PROP_POPUP) && defined(FEAT_TERMINAL) | 355 #if defined(FEAT_PROP_POPUP) && defined(FEAT_TERMINAL) |
354 # define ERROR_IF_TERM_POPUP_WINDOW error_if_term_popup_window() | 356 # define ERROR_IF_TERM_POPUP_WINDOW error_if_term_popup_window() |