mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 01:34:18 +00:00 
			
		
		
		
	Sync OpenBSD patchset 983:
Make M-f and M-b work the same at the command prompt as in copy mode, pointed out by Romain Francoise.
This commit is contained in:
		
							
								
								
									
										5
									
								
								status.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								status.c
									
									
									
									
									
								
							@@ -1156,11 +1156,8 @@ status_prompt_key(struct client *c, int key)
 | 
				
			|||||||
		/* Find the separator at the end of the word. */
 | 
							/* Find the separator at the end of the word. */
 | 
				
			||||||
		while (c->prompt_index != size) {
 | 
							while (c->prompt_index != size) {
 | 
				
			||||||
			c->prompt_index++;
 | 
								c->prompt_index++;
 | 
				
			||||||
			if (strchr(wsep, c->prompt_buffer[c->prompt_index])) {
 | 
								if (strchr(wsep, c->prompt_buffer[c->prompt_index]))
 | 
				
			||||||
				/* Go back to the word. */
 | 
					 | 
				
			||||||
				c->prompt_index--;
 | 
					 | 
				
			||||||
				break;
 | 
									break;
 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		c->flags |= CLIENT_STATUS;
 | 
							c->flags |= CLIENT_STATUS;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user