]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0591: message window popup shows on only one tab page v9.0.0591
authorBram Moolenaar <Bram@vim.org>
Mon, 26 Sep 2022 11:57:11 +0000 (12:57 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 26 Sep 2022 11:57:11 +0000 (12:57 +0100)
Problem:    Message window popup shows on only one tab page. (Naruhiko
            Nishino)
Solution:   Show the message window popup on all tab pages. (closes #11231)

src/popupwin.c
src/testdir/dumps/Test_echowindow_8.dump [new file with mode: 0644]
src/testdir/test_messages.vim
src/version.c

index 4cc7dec6fa53c9838a82009fc226a40ee55ebcd2..aae546566efc556bd5539aa414a0370ca5b366c1 100644 (file)
@@ -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 (file)
index 0000000..d57d437
--- /dev/null
@@ -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| 
index 0100ba97ea6c29b84aa61999cdc6856ef598b048..a32ff512a4fab63ce49736f98f36ac1c1bbd3e08 100644 (file)
@@ -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')
index 0d7dadaf7de5035fede4c948c2ffc895fa0ddade..d17276bb9e9428d1f5a4d324f99bb530c7870999 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    591,
 /**/
     590,
 /**/