Fixing the resizing behaviour.
This commit is contained in:
		
							
								
								
									
										4
									
								
								st.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								st.c
									
									
									
									
									
								
							@@ -739,6 +739,10 @@ execsh(void) {
 | 
				
			|||||||
	char **args;
 | 
						char **args;
 | 
				
			||||||
	char *envshell = getenv("SHELL");
 | 
						char *envshell = getenv("SHELL");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						unsetenv("COLUMNS");
 | 
				
			||||||
 | 
						unsetenv("LINES");
 | 
				
			||||||
 | 
						unsetenv("TERMCAP");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	DEFAULT(envshell, SHELL);
 | 
						DEFAULT(envshell, SHELL);
 | 
				
			||||||
	putenv("TERM="TNAME);
 | 
						putenv("TERM="TNAME);
 | 
				
			||||||
	args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL};
 | 
						args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL};
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user