projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53fde94
)
Write url to history on load finished.
author
Daniel Carl
<danielcarl@gmx.de>
Mon, 10 Apr 2017 11:35:40 +0000
(13:35 +0200)
committer
Daniel Carl
<danielcarl@gmx.de>
Mon, 10 Apr 2017 11:35:40 +0000
(13:35 +0200)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
0166419
..
65b188e
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-33,6
+33,7
@@
#include "ex.h"
#include "ext-proxy.h"
#include "handler.h"
+#include "history.h"
#include "input.h"
#include "js.h"
#include "main.h"
@@
-1123,7
+1124,11
@@
static void on_webview_load_changed(WebKitWebView *webview,
break;
case WEBKIT_LOAD_FINISHED:
+ uri = webkit_web_view_get_uri(webview);
c->state.progress = 100;
+ if (strncmp(uri, "about:", 6)) {
+ history_add(c, HISTORY_URL, uri, webkit_web_view_get_title(webview));
+ }
break;
}
}