mirror of
https://github.com/tmux/tmux.git
synced 2026-05-09 23:24:39 +00:00
Add missing flags to screen_mode_to_string and do not write before
before if any are missed, second bit from qingliu at alauda dot io.
This commit is contained in:
7
screen.c
7
screen.c
@@ -751,6 +751,8 @@ screen_mode_to_string(int mode)
|
||||
strlcat(tmp, "CURSOR_BLINKING,", sizeof tmp);
|
||||
if (mode & MODE_CURSOR_VERY_VISIBLE)
|
||||
strlcat(tmp, "CURSOR_VERY_VISIBLE,", sizeof tmp);
|
||||
if (mode & MODE_CURSOR_BLINKING_SET)
|
||||
strlcat(tmp, "CURSOR_BLINKING_SET,", sizeof tmp);
|
||||
if (mode & MODE_MOUSE_UTF8)
|
||||
strlcat(tmp, "MOUSE_UTF8,", sizeof tmp);
|
||||
if (mode & MODE_MOUSE_SGR)
|
||||
@@ -771,7 +773,10 @@ screen_mode_to_string(int mode)
|
||||
strlcat(tmp, "KEYS_EXTENDED_2,", sizeof tmp);
|
||||
if (mode & MODE_THEME_UPDATES)
|
||||
strlcat(tmp, "THEME_UPDATES,", sizeof tmp);
|
||||
tmp[strlen(tmp) - 1] = '\0';
|
||||
if (mode & MODE_SYNC)
|
||||
strlcat(tmp, "SYNC,", sizeof tmp);
|
||||
if (*tmp != '\0')
|
||||
tmp[strlen(tmp) - 1] = '\0';
|
||||
return (tmp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user