mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
check if \\c is complete in eval
This commit is contained in:
parent
e405330e04
commit
7a83c63701
@ -703,8 +703,11 @@ int expand_escape(const char **data)
|
|||||||
*data += 2;
|
*data += 2;
|
||||||
return strtol(digit, NULL, 16);
|
return strtol(digit, NULL, 16);
|
||||||
case 'c':
|
case 'c':
|
||||||
/* control character (\cA = ^A) */
|
/* check for end of string */
|
||||||
(*data)++;
|
if ((*data)[1] == '\0')
|
||||||
|
return 0;
|
||||||
|
/* control character (\cA = ^A) */
|
||||||
|
(*data)++;
|
||||||
return i_toupper(**data) - 64;
|
return i_toupper(**data) - 64;
|
||||||
case '0': case '1': case '2': case '3':
|
case '0': case '1': case '2': case '3':
|
||||||
case '4': case '5': case '6': case '7':
|
case '4': case '5': case '6': case '7':
|
||||||
|
Loading…
Reference in New Issue
Block a user