projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a688ad3
)
Fix wrong js to scroll to x percent of page.
author
Daniel Carl
<danielcarl@gmx.de>
Sun, 7 May 2017 20:39:59 +0000
(22:39 +0200)
committer
Daniel Carl
<danielcarl@gmx.de>
Sun, 7 May 2017 20:41:20 +0000
(22:41 +0200)
src/normal.c
patch
|
blob
|
history
diff --git
a/src/normal.c
b/src/normal.c
index
156ef52
..
d96513d
100644
(file)
--- a/
src/normal.c
+++ b/
src/normal.c
@@
-688,7
+688,7
@@
static VbResult normal_scroll(Client *c, const NormalCmdInfo *info)
case 'G':
if (info->count) {
js = g_strdup_printf(
- "window.scroll(window.scrollX, %d * (
1 + (document.h
eight - window.innerHeight) / 100));",
+ "window.scroll(window.scrollX, %d * (
(document.documentElement.scrollH
eight - window.innerHeight) / 100));",
info->count);
ext_proxy_eval_script(c, js, NULL);
g_free(js);