about summary refs log tree commit diff
path: root/edit.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-01 14:40:36 -0400
committerJune McEnroe <june@causal.agency>2020-04-01 14:42:07 -0400
commit8495d1221692430edb580d43ead2b60aaaa3381d (patch)
tree79dc93da03f4bb9e82b7fad845e90e00c768f219 /edit.c
parentPass correct length to mbstowcs (diff)
downloadcatgirl-8495d1221692430edb580d43ead2b60aaaa3381d.tar.gz
catgirl-8495d1221692430edb580d43ead2b60aaaa3381d.zip
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".
Diffstat (limited to 'edit.c')
-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',';