Cleanup
This commit is contained in:
parent
6f66aa3c06
commit
ffa5754b59
4
sdn.cpp
4
sdn.cpp
|
@ -895,7 +895,6 @@ fun parse_key (const string &key_name) -> wint_t {
|
||||||
c |= ALT;
|
c |= ALT;
|
||||||
p += 2;
|
p += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strncmp (p, "C-", 2)) {
|
if (!strncmp (p, "C-", 2)) {
|
||||||
p += 2;
|
p += 2;
|
||||||
if (*p < 32) {
|
if (*p < 32) {
|
||||||
|
@ -905,8 +904,7 @@ fun parse_key (const string &key_name) -> wint_t {
|
||||||
c |= CTRL *p;
|
c |= CTRL *p;
|
||||||
p += 1;
|
p += 1;
|
||||||
} else if (g.key_names.count (p)) {
|
} else if (g.key_names.count (p)) {
|
||||||
c |= g.key_names.at (p);
|
return c | g.key_names.at (p);
|
||||||
p += strlen (p);
|
|
||||||
} else {
|
} else {
|
||||||
wchar_t w; mbstate_t mb {};
|
wchar_t w; mbstate_t mb {};
|
||||||
auto len = strlen (p) + 1, res = mbrtowc (&w, p, len, &mb);
|
auto len = strlen (p) + 1, res = mbrtowc (&w, p, len, &mb);
|
||||||
|
|
Loading…
Reference in New Issue