Tab complete from last iswspace

weechat-hashes
C. McEnroe 2020-03-30 13:27:35 -04:00
parent 6bfeff71a2
commit 407eaf9dbf
1 changed files with 1 additions and 1 deletions

2
edit.c
View File

@ -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;