mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 02:27:58 +01:00
uppercase marks work once again
This commit is contained in:
@@ -501,22 +501,26 @@ function Marks()
|
|||||||
var slice = marks[mark];
|
var slice = marks[mark];
|
||||||
if (slice && slice.tab && slice.tab.linkedBrowser)
|
if (slice && slice.tab && slice.tab.linkedBrowser)
|
||||||
{
|
{
|
||||||
vimperator.tabs.select(vimperator.tabs.index(slice.tab));
|
|
||||||
if (!slice.tab.parentNode)
|
if (!slice.tab.parentNode)
|
||||||
{
|
{
|
||||||
pendingMarks.push(slice);
|
pendingMarks.push(slice);
|
||||||
openURLsInNewTab(slice.location);
|
openURLsInNewTab(slice.location, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var win = slice.tab.linkedBrowser.contentWindow;
|
var index = vimperator.tabs.index(slice.tab);
|
||||||
if (win.location.href != slice.location)
|
if (index)
|
||||||
{
|
{
|
||||||
pendingMarks.push(slice);
|
vimperator.tabs.select(index);
|
||||||
win.location.href = slice.location;
|
var win = slice.tab.linkedBrowser.contentWindow;
|
||||||
return;
|
if (win.location.href != slice.location)
|
||||||
|
{
|
||||||
|
pendingMarks.push(slice);
|
||||||
|
win.location.href = slice.location;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
win.scrollTo(slice.position.x * win.scrollMaxX, slice.position.y * win.scrollMaxY);
|
||||||
|
ok = true;
|
||||||
}
|
}
|
||||||
win.scrollTo(slice.position.x * win.scrollMaxX, slice.position.y * win.scrollMaxY);
|
|
||||||
ok = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (mark.match(/^[a-z]$/))
|
else if (mark.match(/^[a-z]$/))
|
||||||
|
|||||||
Reference in New Issue
Block a user