mirror of
https://github.com/tmux/tmux.git
synced 2024-12-12 17:38:48 +00:00
Environment variables can start with { also.
This commit is contained in:
parent
eb8b51effc
commit
f006116bac
4
utf8.c
4
utf8.c
@ -184,7 +184,9 @@ utf8_strvis(char *dst, const char *src, size_t len, int flag)
|
||||
src -= ud.have;
|
||||
}
|
||||
if (src[0] == '$' && src < end - 1) {
|
||||
if (isalpha((u_char)src[1]) || src[1] == '_')
|
||||
if (isalpha((u_char)src[1]) ||
|
||||
src[1] == '_' ||
|
||||
src[1] == '{')
|
||||
*dst++ = '\\';
|
||||
*dst++ = '$';
|
||||
} else if (src < end - 1)
|
||||
|
Loading…
Reference in New Issue
Block a user