about summary refs log tree commit diff
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
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 '')
-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',';
ls/commit/VERSION?h=3.5.2&id=f9a69500226c4a32dfca85401358a01a469e3951&follow=1'>Bump version to 3.3.1p1 3.3.1p1June McEnroe 2021-03-05build: Add OpenSSL includes to libcompatJune McEnroe 2020-12-15Import LibreSSL 3.3.1June McEnroe 2020-11-24Import LibreSSL 3.3.0June McEnroe 2020-10-22Import LibreSSL 3.2.2June McEnroe 2020-09-29Import LibreSSL 3.2.1June McEnroe 2020-09-29import: Add m4/ax_add_fortify_source.m4June McEnroe 2020-08-05build: Add README.7 to EXTRA_DIST 3.2.0June McEnroe 2020-08-03doc: Indicate that only OpenSSL 1.1.1b and newer workJune McEnroe