Yeah. I think it also causes it to respect -t better in certain contexts, when -t specifies the session (and the window is in multiple sessions), because it had been ignoring the session from -t, using the one from the client instead.
-mjc On 05/22/2010 10:03 AM, Nicholas Marriott wrote: > This lets enter work from outside because otherwise ctx->curclient is > NULL, yes? > > Looks fine and works good for me, go for it. > > > On Fri, May 21, 2010 at 01:17:59AM -0700, Micah Cowan wrote: >> On 05/20/2010 08:17 PM, Micah Cowan wrote: >>> Okay, I now understand why that is: copy-selection needs to know which >>> session's paste buffers should be affected, and it gets this information >>> from the passed-in instance of "struct client", which of course is NULL >>> for direct shell commands. So I need it to get it the session >>> information from elsewhere; probably the TMUX env var. >> >> Attached is my patch, against current SF CVS HEAD. >> >> -- >> Micah J. Cowan >> http://micah.cowan.name/ > > >> ------------------------------------------------------------------------------ >> > >> _______________________________________________ >> tmux-users mailing list >> tmux-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/tmux-users -- Micah J. Cowan http://micah.cowan.name/ ------------------------------------------------------------------------------ _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users