diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-20 18:58:13 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-20 18:58:13 +0000 |
commit | d7f5190a69768f2cbee396a51c36e4c6a6ea294f (patch) | |
tree | dc81a3bcf4bae03074dfaf03b9086d2558edc064 /cmd-paste-buffer.c | |
parent | 3128de3f19e18c67626ba34523f6696b584c3f9e (diff) | |
download | rtmux-d7f5190a69768f2cbee396a51c36e4c6a6ea294f.tar.gz rtmux-d7f5190a69768f2cbee396a51c36e4c6a6ea294f.tar.bz2 rtmux-d7f5190a69768f2cbee396a51c36e4c6a6ea294f.zip |
Trim.
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 e49207d5..9d9b5797 100644 --- a/cmd-paste-buffer.c +++ b/cmd-paste-buffer.c @@ -1,4 +1,4 @@ -/* $Id: cmd-paste-buffer.c,v 1.10 2008-06-20 17:39:11 nicm Exp $ */ +/* $Id: cmd-paste-buffer.c,v 1.11 2008-06-20 18:58:13 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -48,7 +48,7 @@ cmd_paste_buffer_exec(struct cmd *self, struct cmd_ctx *ctx) struct winlink *wl; struct session *s; struct paste_buffer *pb; - + if ((wl = cmd_find_window(ctx, data->target, &s)) == NULL) return; @@ -58,7 +58,7 @@ cmd_paste_buffer_exec(struct cmd *self, struct cmd_ctx *ctx) if ((pb = paste_get_top(&s->buffers)) == NULL) ctx->error(ctx, "no buffer %d", data->buffer); } - + if (pb != NULL) buffer_write(wl->window->out, pb->data, strlen(pb->data)); |