Don't lose swapped window when navigating to current buffer
This commit is contained in:
		
							parent
							
								
									965b6987a9
								
							
						
					
					
						commit
						1fbc8fe394
					
				
							
								
								
									
										3
									
								
								ui.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								ui.c
									
									
									
									
									
								
							| @ -733,9 +733,10 @@ static void inputUpdate(void) { | ||||
| } | ||||
| 
 | ||||
| static void windowShow(uint num) { | ||||
| 	windows.user = num; | ||||
| 	if (windows.show == num) return; | ||||
| 	windows.swap = windows.show; | ||||
| 	windows.show = num; | ||||
| 	windows.user = num; | ||||
| 	mark(windows.ptrs[windows.swap]); | ||||
| 	unmark(windows.ptrs[windows.show]); | ||||
| 	windowUpdate(); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user