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.
master
C. McEnroe 2021-03-02 14:45:01 -05:00
parent f4e8f055fb
commit d88ffd9f3f
1 changed files with 2 additions and 0 deletions

2
ui.c
View File

@ -133,10 +133,12 @@ static uint windowFor(uint id) {
window->time = uiTime.enable; window->time = uiTime.enable;
window->thresh = Cold; window->thresh = Cold;
window->buffer = bufferAlloc(); window->buffer = bufferAlloc();
completeAdd(None, idNames[id], idColors[id]);
return windowPush(window); return windowPush(window);
} }
static void windowFree(struct Window *window) { static void windowFree(struct Window *window) {
completeRemove(None, idNames[window->id]);
bufferFree(window->buffer); bufferFree(window->buffer);
free(window); free(window);
} }