From: Robert Timm Date: Tue, 27 Sep 2016 19:27:36 +0000 (+0200) Subject: Fixes comment style X-Git-Url: https://git.owens.tech/assets/me.jpg/assets/me.jpg/git?a=commitdiff_plain;h=596d0e05b9aa4007a02ecf40936d3a9340fec143;p=vimb.git Fixes comment style --- diff --git a/src/command.c b/src/command.c index a8495e0..700bd2c 100644 --- a/src/command.c +++ b/src/command.c @@ -110,9 +110,9 @@ gboolean command_yank(Client *c, const Arg *arg, char buf) yanked = g_strdup(uri); } } else if (arg->i == COMMAND_YANK_SELECTION) { - // copy web view selection to clipboard + /* copy web view selection to clipboard */ webkit_web_view_execute_editing_command(c->webview, WEBKIT_EDITING_COMMAND_COPY); - // read back copy from clipboard + /* read back copy from clipboard */ yanked = gtk_clipboard_wait_for_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY)); } @@ -120,14 +120,14 @@ gboolean command_yank(Client *c, const Arg *arg, char buf) return FALSE; } - // store in vimb default register + /* store in vimb default register */ vb_register_add(c, '"', yanked); - // store in vimb register buf if buf != 0 + /* store in vimb register buf if buf != 0 */ vb_register_add(c, buf, yanked); - // store in X clipboard primary (selected text copy, middle mouse paste) + /* store in X clipboard primary (selected text copy, middle mouse paste) */ gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), yanked, -1); - // store in X "windows style" clipboard + /* store in X "windows style" clipboard */ gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_CLIPBOARD), yanked, -1); vb_echo(c, MSG_NORMAL, false, "Yanked: %s", yanked);