Re: [PATCH 1/1] Allow conditional formats to expand formats

2013-05-15 Thread Nicholas Marriott
This still doesn't seem right. If I have "#{?foo,bar,#{baz}} #{zoink}". Then in format_expand it'll decide the first { is: "?foo,bar,#{baz}} #{zoink". Then if foo is true I'll get bar (which is fine) But if it's false I'll get "#{baz}} #{zoink" which is wrong. You need to replace the strchr wi

Re: binding to enter password

2013-05-15 Thread Nicholas Marriott
probably the input is too fast - su will flush input before reading if you are using tmux 1.8, perhaps try: send-keys 'su^M'\; run 'sleep 0.5'\; send-keys 'pass^M' On Mon, May 13, 2013 at 10:28:11AM +0530, Sinbad wrote: >i want to have a binding to enter into sudo mode. >so i added the

Re: tmux 1.8 crash on font resize

2013-05-15 Thread Nicholas Marriott
Actually I think this is right so I have applied a slight variation on your diff, thanks. On Tue, Apr 16, 2013 at 09:27:08AM -0700, Christopher Collins wrote: >On Tue, Apr 16, 2013 at 2:36 AM, Nicholas Marriott ><[1]nicholas.marri...@gmail.com> wrote: > >>*** Can you show the code yo

Re: [patch] Fix buffer overflow crash in cmd_print()

2013-05-15 Thread Nicholas Marriott
Applied, thanks. On Tue, Apr 30, 2013 at 11:11:52AM -0700, George Nachman wrote: >cmd_print() has a bug that causes a crash on very long commands. >args_print() may return a value equal to the passed-in length, and >cmd_print() appends a null after that location, which steps on the sta

Re: [PATCH] Reset focus reporting mode on RIS

2013-05-15 Thread Nicholas Marriott
Applied, thanks. On Sun, May 12, 2013 at 09:10:27PM +0900, Hayaki Saito wrote: > Hi, > > I think focus reporting mode should be reset by RIS (hard reset). > > Signed-off-by: Hayaki Saito > --- > screen-write.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/screen-wri