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:
nicm
2014-08-11 22:39:57 +00:00
parent 29d20a55b6
commit 2b79d36652
2 changed files with 2 additions and 1 deletions

View File

@@ -429,7 +429,7 @@ window_copy_key(struct window_pane *wp, struct session *sess, int key)
window_pane_reset_mode(wp);
return;
case MODEKEYCOPY_OTHEREND:
for (; np != 0; np--)
if (np % 2)
window_copy_other_end(wp);
break;
case MODEKEYCOPY_LEFT: