Mercurial > vim
comparison src/message.c @ 29966:5dfd4bd66ad8 v9.0.0321
patch 9.0.0321: cannot use the message popup window directly
Commit: https://github.com/vim/vim/commit/37fef16c225eabed28a3c7a0542d2eeef30d812b
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 29 18:16:32 2022 +0100
patch 9.0.0321: cannot use the message popup window directly
Problem: Cannot use the message popup window directly.
Solution: Add ":echowindow".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 29 Aug 2022 19:30:04 +0200 |
parents | 4fcf816aa806 |
children | b579e1f5e7e2 |
comparison
equal
deleted
inserted
replaced
29965:2c4538a21c2d | 29966:5dfd4bd66ad8 |
---|---|
1436 use_message_window(void) | 1436 use_message_window(void) |
1437 { | 1437 { |
1438 #ifdef HAS_MESSAGE_WINDOW | 1438 #ifdef HAS_MESSAGE_WINDOW |
1439 // TRUE if there is no command line showing ('cmdheight' is zero and not | 1439 // TRUE if there is no command line showing ('cmdheight' is zero and not |
1440 // already editing or showing a message) use a popup window for messages. | 1440 // already editing or showing a message) use a popup window for messages. |
1441 return p_ch == 0 && cmdline_row >= Rows; | 1441 // Also when using ":echowindow". |
1442 return (p_ch == 0 && cmdline_row >= Rows) || in_echowindow; | |
1442 #else | 1443 #else |
1443 return FALSE; | 1444 return FALSE; |
1444 #endif | 1445 #endif |
1445 } | 1446 } |
1446 | 1447 |
1482 #endif | 1483 #endif |
1483 | 1484 |
1484 #ifdef HAS_MESSAGE_WINDOW | 1485 #ifdef HAS_MESSAGE_WINDOW |
1485 if (use_message_window()) | 1486 if (use_message_window()) |
1486 { | 1487 { |
1487 if (popup_message_win_visible() && msg_col > 0 | 1488 if (popup_message_win_visible() |
1488 && (msg_scroll || !full_screen)) | 1489 && ((msg_col > 0 && (msg_scroll || !full_screen)) |
1490 || in_echowindow)) | |
1489 { | 1491 { |
1490 win_T *wp = popup_get_message_win(); | 1492 win_T *wp = popup_get_message_win(); |
1491 | 1493 |
1492 // start a new line | 1494 // start a new line |
1493 curbuf = wp->w_buffer; | 1495 curbuf = wp->w_buffer; |