=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-capture-pane.c,v retrieving revision 1.25 retrieving revision 1.26 diff -c -r1.25 -r1.26 *** src/usr.bin/tmux/cmd-capture-pane.c 2013/10/10 12:00:18 1.25 --- src/usr.bin/tmux/cmd-capture-pane.c 2014/04/24 09:14:43 1.26 *************** *** 1,4 **** ! /* $OpenBSD: cmd-capture-pane.c,v 1.25 2013/10/10 12:00:18 nicm Exp $ */ /* * Copyright (c) 2009 Jonathan Alvarado --- 1,4 ---- ! /* $OpenBSD: cmd-capture-pane.c,v 1.26 2014/04/24 09:14:43 nicm Exp $ */ /* * Copyright (c) 2009 Jonathan Alvarado *************** *** 194,200 **** } else { limit = options_get_number(&global_options, "buffer-limit"); if (!args_has(args, 'b')) { ! paste_add(&global_buffers, buf, len, limit); return (CMD_RETURN_NORMAL); } --- 194,200 ---- } else { limit = options_get_number(&global_options, "buffer-limit"); if (!args_has(args, 'b')) { ! paste_add(buf, len, limit); return (CMD_RETURN_NORMAL); } *************** *** 206,212 **** return (CMD_RETURN_ERROR); } ! if (paste_replace(&global_buffers, buffer, buf, len) != 0) { cmdq_error(cmdq, "no buffer %d", buffer); free(buf); return (CMD_RETURN_ERROR); --- 206,212 ---- return (CMD_RETURN_ERROR); } ! if (paste_replace(buffer, buf, len) != 0) { cmdq_error(cmdq, "no buffer %d", buffer); free(buf); return (CMD_RETURN_ERROR);