Fix weird tab-complete after comma

I have no idea why I did this.
master
Curtis McEnroe 2018-09-13 01:50:46 -04:00
parent 4c4d91b449
commit 8a8eab89ff
No known key found for this signature in database
GPG Key ID: CEA2F97ADCFCD77C
1 changed files with 1 additions and 1 deletions

2
edit.c
View File

@ -125,7 +125,7 @@ static void complete(struct Tag tag) {
if (!pos && line.tab[0] != L'/') {
insert(L':');
} else if (pos >= 2) {
if (line.buf[pos - 2] == L':' || line.buf[pos - 2] == L',') {
if (line.buf[pos - 2] == L':') {
line.buf[pos - 2] = L',';
insert(L':');
}