diff options
author | 2009-11-26 22:28:24 +0000 | |
---|---|---|
committer | 2009-11-26 22:28:24 +0000 | |
commit | 5bde14a085d462693eca74214417025e5e776486 (patch) | |
tree | bd0d22c08840f7d8d73734d864bdc3f966c0f201 /usr.bin/tmux/cmd-paste-buffer.c | |
parent | Continue rather than returning if not a mouse key, to avoid hanging on any (diff) | |
download | wireguard-openbsd-5bde14a085d462693eca74214417025e5e776486.tar.xz wireguard-openbsd-5bde14a085d462693eca74214417025e5e776486.zip |
Tidy up various bits of the paste code, make the data buffer char * and add
comments.
Diffstat (limited to 'usr.bin/tmux/cmd-paste-buffer.c')
-rw-r--r-- | usr.bin/tmux/cmd-paste-buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-paste-buffer.c b/usr.bin/tmux/cmd-paste-buffer.c index f96658e3a1e..71269f6995d 100644 --- a/usr.bin/tmux/cmd-paste-buffer.c +++ b/usr.bin/tmux/cmd-paste-buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-paste-buffer.c,v 1.8 2009/11/13 19:53:29 nicm Exp $ */ +/* $OpenBSD: cmd-paste-buffer.c,v 1.9 2009/11/26 22:28:24 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -62,7 +62,7 @@ cmd_paste_buffer_exec(struct cmd *self, struct cmd_ctx *ctx) } } - if (pb != NULL && *pb->data != '\0') { + if (pb != NULL) { /* -r means raw data without LF->CR conversion. */ if (cmd_check_flag(data->chflags, 'r')) bufferevent_write(wp->event, pb->data, pb->size); |