From 8495d1221692430edb580d43ead2b60aaaa3381d Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 1 Apr 2020 14:40:36 -0400 Subject: 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". --- edit.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'edit.c') diff --git a/edit.c b/edit.c index bd258b1..1b23737 100644 --- a/edit.c +++ b/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','; -- cgit 1.4.1