mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 03:57:59 +01:00
* code refactoring, mostly methods from hints.js -> buffer.js
* ;s and :pageinfo try to propose filenames relative to the current directory now
This commit is contained in:
@@ -301,7 +301,7 @@ vimperator.Help = function(section)
|
||||
{
|
||||
vimperator.open("chrome://vimperator/locale/" + file);
|
||||
setTimeout(function() {
|
||||
var elem = vimperator.buffer.element('@class="tag" and text()="' + tag + '"');
|
||||
var elem = vimperator.buffer.getElement('@class="tag" and text()="' + tag + '"');
|
||||
if (elem)
|
||||
window.content.scrollTo(0, elem.getBoundingClientRect().top - 10); // 10px context
|
||||
}, 100);
|
||||
|
||||
Reference in New Issue
Block a user