diff options
author | June McEnroe <june@causal.agency> | 2020-04-01 14:40:36 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-04-01 14:42:07 -0400 |
commit | 8495d1221692430edb580d43ead2b60aaaa3381d (patch) | |
tree | 79dc93da03f4bb9e82b7fad845e90e00c768f219 /edit.c | |
parent | Pass correct length to mbstowcs (diff) | |
download | test-8495d1221692430edb580d43ead2b60aaaa3381d.tar.gz test-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.c | 4 |
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','; |