mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-23 23:29:15 +01:00
Use the right flags argument for -d.
This commit is contained in:
parent
4e4f71febb
commit
ef1c1d5753
7
TODO
7
TODO
@ -82,10 +82,5 @@ where -b number == top if missing:
|
||||
save-buffer -b number filename
|
||||
load-buffer -b number filename
|
||||
copy-buffer (from other session)
|
||||
---
|
||||
set-buffer -b number string
|
||||
show-buffer -n number
|
||||
paste-buffer -b number
|
||||
delete-buffer -b number
|
||||
show-buffers
|
||||
max buffer count (drop old ones off the bottom)
|
||||
---
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: cmd-paste-buffer.c,v 1.9 2008-06-20 17:31:48 nicm Exp $ */
|
||||
/* $Id: cmd-paste-buffer.c,v 1.10 2008-06-20 17:39:11 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -30,7 +30,7 @@ void cmd_paste_buffer_exec(struct cmd *, struct cmd_ctx *);
|
||||
|
||||
const struct cmd_entry cmd_paste_buffer_entry = {
|
||||
"paste-buffer", "pasteb",
|
||||
CMD_BUFFER_WINDOW_USAGE,
|
||||
"[-d] " CMD_BUFFER_WINDOW_USAGE,
|
||||
CMD_DFLAG,
|
||||
cmd_buffer_init,
|
||||
cmd_buffer_parse,
|
||||
@ -63,7 +63,7 @@ cmd_paste_buffer_exec(struct cmd *self, struct cmd_ctx *ctx)
|
||||
buffer_write(wl->window->out, pb->data, strlen(pb->data));
|
||||
|
||||
/* Delete the buffer if -d. */
|
||||
if (ctx->flags & CMD_DFLAG) {
|
||||
if (data->flags & CMD_DFLAG) {
|
||||
if (data->buffer == -1)
|
||||
paste_free_top(&s->buffers);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user