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
parent
f4e8f055fb
commit
d88ffd9f3f
2
ui.c
2
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue