summaryrefslogtreecommitdiffstats
path: root/cmd-paste-buffer.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-11-26 22:28:24 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-11-26 22:28:24 +0000
commit8cb410c63cbec58dc736e160ffe88a67af46e4c9 (patch)
tree557c8cea9558af595265778be29a851a4afd4c28 /cmd-paste-buffer.c
parentba5404d93e40e61176ffb150b66ddc3b349603a7 (diff)
Tidy up various bits of the paste code, make the data buffer char * and add
comments.
Diffstat (limited to 'cmd-paste-buffer.c')
-rw-r--r--cmd-paste-buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-paste-buffer.c b/cmd-paste-buffer.c
index 11f70f1f..7d13ae0a 100644
--- a/cmd-paste-buffer.c
+++ b/cmd-paste-buffer.c
@@ -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);