diff options
author | Dmitry Chagin <dchagin@FreeBSD.org> | 2023-01-29 20:46:19 +0000 |
---|---|---|
committer | Dmitry Chagin <dchagin@FreeBSD.org> | 2023-01-29 20:46:19 +0000 |
commit | 143ef44f06822f82a8358d4c02f07102d963fe5f (patch) | |
tree | f9080b8a265dd926053ee7ae187e8fa46f3fb5e0 /tc.bind.c | |
parent | 174d8b60324d7e8754709f7155e13ca95220b48c (diff) |
Diffstat (limited to 'tc.bind.c')
-rw-r--r-- | tc.bind.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tc.bind.c b/tc.bind.c index 33312f478522..74883a78d0e5 100644 --- a/tc.bind.c +++ b/tc.bind.c @@ -32,6 +32,7 @@ #include "sh.h" #include "ed.h" #include "ed.defns.h" +#include "tw.h" static void printkey (const KEYCMD *, CStr *); static KEYCMD parsecmd (Char *); @@ -139,7 +140,7 @@ dobindkey(Char **v, struct command *c) } cleanup_push(in.buf, xfree); -#ifndef WINNT_NATIVE +#if !defined(WINNT_NATIVE) && defined(SHORT_STRINGS) if (in.buf[0] > 0xFF) { bad_spec(in.buf); cleanup_until(in.buf); @@ -385,7 +386,7 @@ parsestring(const Char *str, CStr *buf) cleanup_push(&b, Strbuf_cleanup); for (p = str; *p != 0; p++) { if ((*p & CHAR) == '\\' || (*p & CHAR) == '^') { - if ((es = parseescape(&p)) == CHAR_ERR) { + if ((es = parseescape(&p, TRUE)) == CHAR_ERR) { cleanup_until(&b); return 0; } else |