summary refs log tree commit diff
diff options
context:
space:
mode:
authorC. McEnroe2020-04-01 14:40:36 -0400
committerC. McEnroe2020-04-01 14:42:07 -0400
commit8495d1221692430edb580d43ead2b60aaaa3381d (patch)
tree79dc93da03f4bb9e82b7fad845e90e00c768f219
parent77a7c02435179d3e4208cf8588d37bbd124b788e (diff)
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".
-rw-r--r--edit.c4
1 files changed, 1 insertions, 3 deletions
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',';