Applied thanks (although your mailer mangled the patch).

On Mon, Jun 23, 2014 at 06:31:45PM +0300, Juho Pohjala wrote:
> Hi
> 
> Assuming vi-keys and copy mode with some selected text. Switching to
> other end 333 times (i.e. typing '333o' takes a while). As unlikely as
> it is that a user uses repetition when switching to other end, we must
> anyways keep tmux responsive.
> 
> Regards,
> Juho
> 
> 
> >From 447c46eee824d0f6ab1629e8be9e0b8743998717 Mon Sep 17 00:00:00 2001
> From: Juho Pohjala <juho.pohj...@gmail.com>
> Date: Mon, 23 Jun 2014 17:57:22 +0300
> Subject: [PATCH] copy-mode: prevent switching to other end multiple times
> 
> ---
>  window-copy.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/window-copy.c b/window-copy.c
> index 0775bcb..147bdea 100644
> --- a/window-copy.c
> +++ b/window-copy.c
> @@ -428,7 +428,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:
> --
> 1.7.10.4
> 
> ------------------------------------------------------------------------------
> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> Find What Matters Most in Your Big Data with HPCC Systems
> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
> http://p.sf.net/sfu/hpccsystems
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

------------------------------------------------------------------------------
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to