diff options
author | C. McEnroe | 2020-03-30 13:27:35 -0400 |
---|---|---|
committer | C. McEnroe | 2020-03-30 13:27:35 -0400 |
commit | 407eaf9dbf8ed304cded894cbfcc6a563bc9f5bf (patch) | |
tree | 9ef2b290df419cf71302105e354c5153e0689f22 | |
parent | 6bfeff71a285c268a42ac34cc9ea4a529d17a051 (diff) |
Tab complete from last iswspace
-rw-r--r-- | edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |