From: Daniel Carl <danielcarl@gmx.de>
Date: Tue, 11 Oct 2016 09:15:34 +0000 (+0200)
Subject: Allow to print page via :hardcopy command.
X-Git-Url: https://git.owens.tech/projects.html/projects.html/git?a=commitdiff_plain;h=a1f982e56162dc04facd6993116a5165b1f0d031;p=vimb.git

Allow to print page via :hardcopy command.
---

diff --git a/src/ex.c b/src/ex.c
index 98570d1..d1d38c5 100644
--- a/src/ex.c
+++ b/src/ex.c
@@ -797,7 +797,7 @@ static void ex_eval_javascript_finished(GObject *object,
 
 static VbCmdResult ex_hardcopy(Client *c, const ExArg *arg)
 {
-    /* TODO no implemented yet */
+    webkit_web_view_run_javascript(c->webview, "window.print();", NULL, NULL, NULL);
     return CMD_SUCCESS;
 }