Tidy up various bits of the paste code, make the data buffer char * and add

comments.
This commit is contained in:
Nicholas Marriott
2009-11-26 22:28:24 +00:00
parent ba5404d93e
commit 8cb410c63c
7 changed files with 55 additions and 24 deletions

View File

@ -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);