1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 14:27:58 +01:00

fix :mark and :delmarks (AKA return of the marks) and add range support to

:delmarks
This commit is contained in:
Doug Kearns
2007-06-26 04:44:28 +00:00
parent b86ace3fb7
commit feadfb0bba
3 changed files with 150 additions and 96 deletions

View File

@@ -309,12 +309,6 @@ function Vimperator() //{{{
content.focus();
}
this.getCurrentBuffer = function()
{
return document.commandDispatcher.focusedWindow;
}
/**
* logs any object to the javascript error console
* also prints all properties of thie object
@@ -918,7 +912,7 @@ function Tabs() //{{{
// @returns the index of the currently selected tab starting with 0
this.index = function(tab)
{
if(tab)
if (tab)
{
var length = getBrowser().mTabs.length;
for (var i = 0; i < length; i++)
@@ -926,7 +920,7 @@ function Tabs() //{{{
if (getBrowser().mTabs[i] == tab)
return i;
}
return false;
return -1;
}
return getBrowser().tabContainer.selectedIndex;