diff options
author | June McEnroe <june@causal.agency> | 2021-09-28 22:35:21 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-09-28 22:35:52 -0400 |
commit | 047d757420904761c163e51c1a2c2c18058da87b (patch) | |
tree | 0a1c146c05616b04627193821b0e5626131b4620 | |
parent | Handle KCGI_EXIT gracefully (diff) | |
download | torus-047d757420904761c163e51c1a2c2c18058da87b.tar.gz torus-047d757420904761c163e51c1a2c2c18058da87b.zip |
Fix backspace on OpenBSD
Woops! Insert mode without backspace sucks.
Diffstat (limited to '')
-rw-r--r-- | client.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/client.c b/client.c index 4736261..03d8486 100644 --- a/client.c +++ b/client.c @@ -524,8 +524,12 @@ static void inputDirection(bool keyCode, wchar_t ch) { static void inputInsert(bool keyCode, wchar_t ch) { if (keyCode) { - inputNormal(keyCode, ch); - return; + if (ch == KEY_BACKSPACE) { + ch = '\b'; + } else { + inputNormal(keyCode, ch); + return; + } } switch (ch) { break; case Esc: { |