From 407eaf9dbf8ed304cded894cbfcc6a563bc9f5bf Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Mon, 30 Mar 2020 13:27:35 -0400 Subject: Tab complete from last iswspace --- edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'edit.c') diff --git a/edit.c b/edit.c index 720d7fd..5aa3de4 100644 --- a/edit.c +++ b/edit.c @@ -81,7 +81,7 @@ static struct { static void tabComplete(uint id) { if (!tab.len) { tab.pos = pos; - while (tab.pos && buf[tab.pos - 1] != L' ') tab.pos--; + while (tab.pos && !iswspace(buf[tab.pos - 1])) tab.pos--; if (tab.pos == pos) return; tab.pre = pos - tab.pos; tab.len = tab.pre; -- cgit 1.4.1-2-gfad0