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.
This commit is contained in:
		
							parent
							
								
									f4e8f055fb
								
							
						
					
					
						commit
						d88ffd9f3f
					
				
							
								
								
									
										2
									
								
								ui.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								ui.c
									
									
									
									
									
								
							| @ -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); | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user