From d88ffd9f3fe57e463818a70091aad7d746e2f895 Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Tue, 2 Mar 2021 14:45:01 -0500 Subject: 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. --- ui.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- cgit 1.4.1-2-gfad0