diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-20 17:39:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-20 17:39:11 +0000 |
commit | ef1c1d57531bbfd762434524fd8e774cf5b9a140 (patch) | |
tree | afb387ccb4a428464f42cc6cb8c8737b4f484787 /cmd-paste-buffer.c | |
parent | 4e4f71febb506fc83abb75ca163eca250ca4ac2a (diff) |
Use the right flags argument for -d.
Diffstat (limited to 'cmd-paste-buffer.c')
-rw-r--r-- | cmd-paste-buffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-paste-buffer.c b/cmd-paste-buffer.c index 3485a6c8..e49207d5 100644 --- a/cmd-paste-buffer.c +++ b/cmd-paste-buffer.c @@ -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 |