mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
fix(ui): command line issues with external messages (#21709)
* fix: don't truncate external messages * fix: avoid resizing command line with external messages
This commit is contained in:
@@ -919,9 +919,11 @@ char *msg_trunc_attr(char *s, bool force, int attr)
|
||||
/// @note: May change the message by replacing a character with '<'.
|
||||
char *msg_may_trunc(bool force, char *s)
|
||||
{
|
||||
int room;
|
||||
if (ui_has(kUIMessages)) {
|
||||
return s;
|
||||
}
|
||||
|
||||
room = (Rows - cmdline_row - 1) * Columns + sc_col - 1;
|
||||
int room = (Rows - cmdline_row - 1) * Columns + sc_col - 1;
|
||||
if ((force || (shortmess(SHM_TRUNC) && !exmode_active))
|
||||
&& (int)strlen(s) - room > 0) {
|
||||
int size = vim_strsize(s);
|
||||
|
Reference in New Issue
Block a user