mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Add a "delete line" key when editing in the status line or the search up/down
prompt. C-u with emacs keys, d with vi.
This commit is contained in:
		
							
								
								
									
										5
									
								
								status.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								status.c
									
									
									
									
									
								
							@@ -854,6 +854,11 @@ status_prompt_key(struct client *c, int key)
 | 
			
		||||
			c->flags |= CLIENT_STATUS;
 | 
			
		||||
		}
 | 
			
		||||
		break;
 | 
			
		||||
	case MODEKEYEDIT_DELETELINE:
 | 
			
		||||
		*c->prompt_buffer = '\0';
 | 
			
		||||
		c->prompt_index = 0;
 | 
			
		||||
		c->flags |= CLIENT_STATUS;
 | 
			
		||||
		break;
 | 
			
		||||
	case MODEKEYEDIT_DELETETOENDOFLINE:
 | 
			
		||||
		if (c->prompt_index < size) {
 | 
			
		||||
			c->prompt_buffer[c->prompt_index] = '\0';
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user