Re: potential memory leak in window_copy_copy_selection

2014-02-15 Thread Nicholas Marriott
yes i thought of that and decided against it On Fri, Feb 14, 2014 at 05:02:04PM -0600, J Raynor wrote: > I suppose paste_replace could always handle the freeing of the memory. > This would preserve its fire and forget nature. > > See the attached patch. --

patch for append to buffer

2014-02-15 Thread J Raynor
In the "copy/paste improvements" section of the TODO list there's this item: * append to buffer I've attached a patch that implements this. I've added a new command called append-buffer, which works like set-buffer. I added the code for this in cmd-set-buffer.c to avoid adding a new source fil

Re: patch for append to buffer

2014-02-15 Thread Nicholas Marriott
Hi. Can you make this a flag to setb (-A? -a?) instead of a new command? Original message From: J Raynor Date: 15/02/2014 20:01 (GMT+00:00) To: tmux-users@lists.sourceforge.net Subject: patch for append to buffer In the "copy/paste improvements" section of the TODO list

Re: patch for append to buffer

2014-02-15 Thread J Raynor
> Hi. Can you make this a flag to setb (-A? -a?) instead of a new command? Sure. I've attached a new patch. There's no append-buffer command, and passing -a to set-buffer will cause it to append. tmux-append.patch Description: Binary data ---