Fix multi-mention tab completion condition

I don't know why I ever programmed it this way. It was really annoying
when trying to write "some phrase, nick".
master
C. McEnroe 2020-04-01 14:40:36 -04:00
parent 77a7c02435
commit 8495d12216
1 changed files with 1 additions and 3 deletions

4
edit.c
View File

@ -160,9 +160,7 @@ static void tabComplete(uint id) {
reserve(tab.pos, tab.len); reserve(tab.pos, tab.len);
buf[tab.pos + n + 0] = L':'; buf[tab.pos + n + 0] = L':';
buf[tab.pos + n + 1] = L' '; buf[tab.pos + n + 1] = L' ';
} else if ( } else if (tab.pos >= 2 && buf[tab.pos - 2] == L':') {
tab.pos >= 2 && (buf[tab.pos - 2] == L':' || buf[tab.pos - 2] == L',')
) {
tab.len += 2; tab.len += 2;
reserve(tab.pos, tab.len); reserve(tab.pos, tab.len);
buf[tab.pos - 2] = L','; buf[tab.pos - 2] = L',';