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
parent
77a7c02435
commit
8495d12216
4
edit.c
4
edit.c
|
@ -160,9 +160,7 @@ static void tabComplete(uint id) {
|
|||
reserve(tab.pos, tab.len);
|
||||
buf[tab.pos + n + 0] = L':';
|
||||
buf[tab.pos + n + 1] = L' ';
|
||||
} else if (
|
||||
tab.pos >= 2 && (buf[tab.pos - 2] == L':' || buf[tab.pos - 2] == L',')
|
||||
) {
|
||||
} else if (tab.pos >= 2 && buf[tab.pos - 2] == L':') {
|
||||
tab.len += 2;
|
||||
reserve(tab.pos, tab.len);
|
||||
buf[tab.pos - 2] = L',';
|
||||
|
|
Loading…
Reference in New Issue