From 84f2c84fb585497b2348ac52810342ca8163b1ce Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 25 Aug 2018 15:34:27 -0400 Subject: [PATCH] Fix tabs in repl. --- src/mainclient/line.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mainclient/line.c b/src/mainclient/line.c index 713aeb14..c1b0021c 100644 --- a/src/mainclient/line.c +++ b/src/mainclient/line.c @@ -327,6 +327,10 @@ static int line() { default: if (insert(c)) return -1; break; + case 9: /* tab */ + if (insert(' ')) return -1; + if (insert(' ')) return -1; + break; case 13: /* enter */ return 0; case 3: /* ctrl-c */