mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Add a flag for jobs that shouldn't be freed after they've died and use it for
status jobs, then only kill those jobs when status-left, status-right or set-titles-string is changed. Fixes problems with changing options from inside #().
This commit is contained in:
		
							
								
								
									
										4
									
								
								status.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								status.c
									
									
									
									
									
								
							@@ -476,8 +476,8 @@ status_job(struct client *c, char **iptr)
 | 
			
		||||
 | 
			
		||||
	job = job_get(&c->status_jobs, cmd);
 | 
			
		||||
	if (job == NULL) {
 | 
			
		||||
		job = job_add(
 | 
			
		||||
		    &c->status_jobs, c, cmd, status_job_callback, xfree, NULL);
 | 
			
		||||
		job = job_add(&c->status_jobs,
 | 
			
		||||
		    JOB_PERSIST, c, cmd, status_job_callback, xfree, NULL);
 | 
			
		||||
		job_run(job);
 | 
			
		||||
	}
 | 
			
		||||
	if (job->data == NULL)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user