]> git.gir.st - VimFx.git/commit
Fix some links not being targeted by `F`, `gf` and `gF`
authorSimon Lydell <simon.lydell@gmail.com>
Wed, 2 Dec 2015 06:37:53 +0000 (07:37 +0100)
committerSimon Lydell <simon.lydell@gmail.com>
Wed, 2 Dec 2015 06:37:53 +0000 (07:37 +0100)
commit48b695f78506a1f9bb1049c07080e9387aec2512
tree2dfe048a981918dccfa7cfabc3a0ffaec71296ed
parentbc5e8a1dc425fc8ffc036a233b604f7198ed72e2
Fix some links not being targeted by `F`, `gf` and `gF`

In commit af0c4a07, links with an 'onclick' attribute stopped being considered
as "proper". The reason was to prevent such links from getting the same hint as
other links with the same href, because the 'onclick' likely makes all those
links behave differently.

However, on startpage.com the search result links actually are "proper" links,
but also have 'onclick' attributes and since that caused them not to be
considered as proper, they did not get hints when using `F`, `gf` and `gF`
commands.

This commit considers links with 'onclick' as proper again, and only excludes
them from getting the same hint as other links.
extension/lib/commands-frame.coffee
extension/lib/utils.coffee
Imprint / Impressum