diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-02 21:36:51 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-02 21:36:51 +0000 |
commit | 95cc21c25180d0f2e7b488983e3078834343d162 (patch) | |
tree | 5a934b9788ab33cd06d41c3216ab7524bf464766 /cmd-paste-buffer.c | |
parent | 259dcbbc9326689ab7e982a73ebbeff947f7260f (diff) |
Quick man page update, also fix some usages and get rid of some CMD_KEY checks.
Diffstat (limited to 'cmd-paste-buffer.c')
-rw-r--r-- | cmd-paste-buffer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd-paste-buffer.c b/cmd-paste-buffer.c index 30146ad4..ba16f3fc 100644 --- a/cmd-paste-buffer.c +++ b/cmd-paste-buffer.c @@ -1,4 +1,4 @@ -/* $Id: cmd-paste-buffer.c,v 1.3 2008-06-02 18:08:16 nicm Exp $ */ +/* $Id: cmd-paste-buffer.c,v 1.4 2008-06-02 21:36:51 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -51,10 +51,8 @@ cmd_paste_buffer_exec(unused void *ptr, struct cmd_ctx *ctx) return; w = s->curw->window; - if (ctx->flags & CMD_KEY && - paste_buffer != NULL && *paste_buffer != '\0') { + if (paste_buffer != NULL && *paste_buffer != '\0') buffer_write(w->out, paste_buffer, strlen(paste_buffer)); - } if (ctx->cmdclient != NULL) server_write_client(ctx->cmdclient, MSG_EXIT, NULL, 0); |