Mercurial > vim
comparison src/message.c @ 30029:d03ee646c9ec v9.0.0352
patch 9.0.0352: using :echowindow in a timer clears part of message
Commit: https://github.com/vim/vim/commit/3b474dcd30ea188124f5ad766f5096f9a0cef895
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 1 17:01:32 2022 +0100
patch 9.0.0352: using :echowindow in a timer clears part of message
Problem: using :echowindow in a timer clears part of message
Solution: Do not use msg_clr_eos().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 01 Sep 2022 18:15:05 +0200 |
parents | bb0e525e1393 |
children | b871016ea7c1 |
comparison
equal
deleted
inserted
replaced
30028:2ee12f894bb0 | 30029:d03ee646c9ec |
---|---|
1441 VIM_CLEAR(keep_msg); | 1441 VIM_CLEAR(keep_msg); |
1442 need_fileinfo = FALSE; | 1442 need_fileinfo = FALSE; |
1443 } | 1443 } |
1444 | 1444 |
1445 #ifdef FEAT_EVAL | 1445 #ifdef FEAT_EVAL |
1446 if (need_clr_eos || in_echowindow) | 1446 if (need_clr_eos) |
1447 { | 1447 { |
1448 // Halfway an ":echo" command and getting an (error) message: clear | 1448 // Halfway an ":echo" command and getting an (error) message: clear |
1449 // any text from the command. | 1449 // any text from the command. |
1450 need_clr_eos = FALSE; | 1450 need_clr_eos = FALSE; |
1451 msg_clr_eos(); | 1451 msg_clr_eos(); |
3644 * for msg_check(). | 3644 * for msg_check(). |
3645 */ | 3645 */ |
3646 void | 3646 void |
3647 msg_clr_eos_force(void) | 3647 msg_clr_eos_force(void) |
3648 { | 3648 { |
3649 #ifdef HAS_MESSAGE_WINDOW | |
3650 if (in_echowindow) | |
3651 return; // messages go into a popup | |
3652 #endif | |
3649 if (msg_use_printf()) | 3653 if (msg_use_printf()) |
3650 { | 3654 { |
3651 if (full_screen) // only when termcap codes are valid | 3655 if (full_screen) // only when termcap codes are valid |
3652 { | 3656 { |
3653 if (*T_CD) | 3657 if (*T_CD) |