Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

follow_selected: eval_js is gone from webview.

  • Loading branch information...
commit 3643e805890023ffa6e96f4a919ef0cd11947223 1 parent aab1343
@vain vain authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/follow_selected.lua
View
8 lib/follow_selected.lua
@@ -47,28 +47,28 @@ local key = lousy.bind.key
add_binds("normal", {
-- Follow selected link
key({}, "Return", function (w)
- local uri = w:eval_js(return_selected)
+ local uri = w.view:eval_js(return_selected)
if uri == "" then return false end
w:navigate(uri)
end),
-- Follow selected link in new tab
key({"Control"}, "Return", function (w)
- local uri = w:eval_js(return_selected)
+ local uri = w.view:eval_js(return_selected)
if uri == "" then return false end
w:new_tab(uri, false)
end),
-- Follow selected link in new window
key({"Shift"}, "Return", function (w)
- local uri = w:eval_js(return_selected)
+ local uri = w.view:eval_js(return_selected)
if uri == "" then return false end
window.new({uri})
end),
-- Download selected uri
key({"Mod1"}, "Return", function (w)
- local uri = w:eval_js(return_selected)
+ local uri = w.view:eval_js(return_selected)
if uri == "" then return false end
w:download(uri)
end),
Please sign in to comment.
Something went wrong with that request. Please try again.