diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-16 15:50:45 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-16 15:50:45 +0200 |
commit | 8cdbd5b3c4225b04536dea7523718695306b16b5 (patch) | |
tree | d7cd76c65d4489a9c76ec848c358f0876cc0c71c /src/window.c | |
parent | 1c196e7b1742c1a50ce0d74190721acaad087f81 (diff) | |
download | vim-git-8cdbd5b3c4225b04536dea7523718695306b16b5.tar.gz |
patch 8.1.1555: NOT_IN_POPUP_WINDOW is confusingv8.1.1555
Problem: NOT_IN_POPUP_WINDOW is confusing. (Andy Massimino)
Solution: Rename to ERROR_IF_POPUP_WINDOW().
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/window.c b/src/window.c index 436912934..ee616ee96 100644 --- a/src/window.c +++ b/src/window.c @@ -87,7 +87,7 @@ do_window( #endif char_u cbuf[40]; - if (NOT_IN_POPUP_WINDOW) + if (ERROR_IF_POPUP_WINDOW) return; #ifdef FEAT_CMDWIN @@ -735,7 +735,7 @@ cmd_with_count( int win_split(int size, int flags) { - if (NOT_IN_POPUP_WINDOW) + if (ERROR_IF_POPUP_WINDOW) return FAIL; /* When the ":tab" modifier was used open a new tab page instead. */ @@ -1523,7 +1523,7 @@ win_exchange(long Prenum) win_T *wp2; int temp; - if (NOT_IN_POPUP_WINDOW) + if (ERROR_IF_POPUP_WINDOW) return; if (ONE_WINDOW) // just one window { @@ -2379,7 +2379,7 @@ win_close(win_T *win, int free_buf) tabpage_T *prev_curtab = curtab; frame_T *win_frame = win->w_frame->fr_parent; - if (NOT_IN_POPUP_WINDOW) + if (ERROR_IF_POPUP_WINDOW) return FAIL; if (last_window()) @@ -4240,7 +4240,7 @@ win_goto(win_T *wp) win_T *owp = curwin; #endif - if (NOT_IN_POPUP_WINDOW) + if (ERROR_IF_POPUP_WINDOW) return; if (text_locked()) { |