diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-26 12:57:11 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-26 12:57:11 +0100 |
commit | 4569020538f76cab588f723bd7243e3896937568 (patch) | |
tree | c8c1ba2d2c6b1e734a380b06c3ddf24b62119239 | |
parent | ee09fcc9b6cf24e02899461809da9a5148208ea5 (diff) | |
download | vim-git-4569020538f76cab588f723bd7243e3896937568.tar.gz |
patch 9.0.0591: message window popup shows on only one tab pagev9.0.0591
Problem: Message window popup shows on only one tab page. (Naruhiko
Nishino)
Solution: Show the message window popup on all tab pages. (closes #11231)
-rw-r--r-- | src/popupwin.c | 2 | ||||
-rw-r--r-- | src/testdir/dumps/Test_echowindow_8.dump | 8 | ||||
-rw-r--r-- | src/testdir/test_messages.vim | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
4 files changed, 16 insertions, 0 deletions
diff --git a/src/popupwin.c b/src/popupwin.c index 4cc7dec6f..aae546566 100644 --- a/src/popupwin.c +++ b/src/popupwin.c @@ -2053,6 +2053,8 @@ popup_create(typval_T *argvars, typval_T *rettv, create_type_T type) } } } + else if (popup_is_notification(type)) + tabnr = -1; // show on all tabs // Create the window and buffer. wp = win_alloc_popup_win(); diff --git a/src/testdir/dumps/Test_echowindow_8.dump b/src/testdir/dumps/Test_echowindow_8.dump new file mode 100644 index 000000000..d57d43787 --- /dev/null +++ b/src/testdir/dumps/Test_echowindow_8.dump @@ -0,0 +1,8 @@ +| +8#0000001#e0e0e08|+| |[|N|o| |N|a|m|e|]| | +2#0000000#ffffff0|[|N|o| |N|a|m|e|]| | +1&&@49|X+8#0000001#e0e0e08 +> +0#0000000#ffffff0@74 +|~+0#4040ff13&| @73 +|═+0#e000002&@74 +|l|a|t|e|r| |m|e|s@1|a|g|e| @61 +|m|o|r|e| @70 +|:+0#0000000&|e|c|h|o|w|i|n| |'|m|o|r|e|'| @59 +@57|0|,|0|-|1| @8|A|l@1| diff --git a/src/testdir/test_messages.vim b/src/testdir/test_messages.vim index 0100ba97e..a32ff512a 100644 --- a/src/testdir/test_messages.vim +++ b/src/testdir/test_messages.vim @@ -475,6 +475,10 @@ func Test_echowindow() call term_sendkeys(buf, "\<CR>") call VerifyScreenDump(buf, 'Test_echowindow_7', {}) + call term_sendkeys(buf, ":tabnew\<CR>") + call term_sendkeys(buf, ":echowin 'more'\<CR>") + call VerifyScreenDump(buf, 'Test_echowindow_8', {}) + " clean up call StopVimInTerminal(buf) call delete('XtestEchowindow') diff --git a/src/version.c b/src/version.c index 0d7dadaf7..d17276bb9 100644 --- a/src/version.c +++ b/src/version.c @@ -700,6 +700,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 591, +/**/ 590, /**/ 589, |