mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 01:34:18 +00:00 
			
		
		
		
	No need to repeat other-end more than once, from Juho Pohjala. Also add
it to the commands list while here.
This commit is contained in:
		@@ -130,6 +130,7 @@ const struct mode_key_cmdstr mode_key_cmdstr_copy[] = {
 | 
				
			|||||||
	{ MODEKEYCOPY_NEXTSPACEEND, "next-space-end" },
 | 
						{ MODEKEYCOPY_NEXTSPACEEND, "next-space-end" },
 | 
				
			||||||
	{ MODEKEYCOPY_NEXTWORD, "next-word" },
 | 
						{ MODEKEYCOPY_NEXTWORD, "next-word" },
 | 
				
			||||||
	{ MODEKEYCOPY_NEXTWORDEND, "next-word-end" },
 | 
						{ MODEKEYCOPY_NEXTWORDEND, "next-word-end" },
 | 
				
			||||||
 | 
						{ MODEKEYCOPY_OTHEREND, "other-end" },
 | 
				
			||||||
	{ MODEKEYCOPY_PREVIOUSPAGE, "page-up" },
 | 
						{ MODEKEYCOPY_PREVIOUSPAGE, "page-up" },
 | 
				
			||||||
	{ MODEKEYCOPY_PREVIOUSSPACE, "previous-space" },
 | 
						{ MODEKEYCOPY_PREVIOUSSPACE, "previous-space" },
 | 
				
			||||||
	{ MODEKEYCOPY_PREVIOUSWORD, "previous-word" },
 | 
						{ MODEKEYCOPY_PREVIOUSWORD, "previous-word" },
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -429,7 +429,7 @@ window_copy_key(struct window_pane *wp, struct session *sess, int key)
 | 
				
			|||||||
		window_pane_reset_mode(wp);
 | 
							window_pane_reset_mode(wp);
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
	case MODEKEYCOPY_OTHEREND:
 | 
						case MODEKEYCOPY_OTHEREND:
 | 
				
			||||||
		for (; np != 0; np--)
 | 
							if (np % 2)
 | 
				
			||||||
			window_copy_other_end(wp);
 | 
								window_copy_other_end(wp);
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
	case MODEKEYCOPY_LEFT:
 | 
						case MODEKEYCOPY_LEFT:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user