diff options
author | June McEnroe <june@causal.agency> | 2021-03-02 14:45:01 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-03-02 14:45:01 -0500 |
commit | d88ffd9f3fe57e463818a70091aad7d746e2f895 (patch) | |
tree | 49f140d45dfa77293363780f260a5357bc880611 | |
parent | Add workaround for lack of A_ITALIC in old ncurses (diff) | |
download | catgirl-d88ffd9f3fe57e463818a70091aad7d746e2f895.tar.gz catgirl-d88ffd9f3fe57e463818a70091aad7d746e2f895.zip |
Add all window names to global completion
Don't want to be touching window names much though, otherwise query window names would interfere with tab completion within a channel.
Diffstat (limited to '')
-rw-r--r-- | ui.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui.c b/ui.c index d18ea74..dde0d2a 100644 --- a/ui.c +++ b/ui.c @@ -133,10 +133,12 @@ static uint windowFor(uint id) { window->time = uiTime.enable; window->thresh = Cold; window->buffer = bufferAlloc(); + completeAdd(None, idNames[id], idColors[id]); return windowPush(window); } static void windowFree(struct Window *window) { + completeRemove(None, idNames[window->id]); bufferFree(window->buffer); free(window); } |