mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Whoops, getting the comparison the right way round is usually recommended.
This commit is contained in:
		
							
								
								
									
										2
									
								
								server.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								server.c
									
									
									
									
									
								
							@@ -1124,7 +1124,7 @@ server_check_window(struct window *w)
 | 
				
			|||||||
		 * the window to be destroyed (or it'll close when the last
 | 
							 * the window to be destroyed (or it'll close when the last
 | 
				
			||||||
		 * pane dies).
 | 
							 * pane dies).
 | 
				
			||||||
		 */
 | 
							 */
 | 
				
			||||||
		if (wp->fd == -1 && options_get_number(oo, "remain-on-exit")) {
 | 
							if (wp->fd == -1 && !options_get_number(oo, "remain-on-exit")) {
 | 
				
			||||||
			layout_close_pane(wp);
 | 
								layout_close_pane(wp);
 | 
				
			||||||
			window_remove_pane(w, wp);
 | 
								window_remove_pane(w, wp);
 | 
				
			||||||
			server_redraw_window(w);
 | 
								server_redraw_window(w);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user