mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 23:27:59 +01:00
Small fixes for recent commits.
This commit is contained in:
@@ -1139,7 +1139,7 @@ function Editor() //{{{
|
|||||||
removeAllAbbreviations: function (filter)
|
removeAllAbbreviations: function (filter)
|
||||||
{
|
{
|
||||||
let searchFilter = (filter == "!") ? "!ci" : filter + "!";
|
let searchFilter = (filter == "!") ? "!ci" : filter + "!";
|
||||||
for ([lhs, [mode, rhs]] in abbrevs())
|
for (let [lhs, [mode, rhs]] in abbrevs())
|
||||||
if (searchFilter.indexOf(mode) >= 0)
|
if (searchFilter.indexOf(mode) >= 0)
|
||||||
this.removeAbbreviation(filter, lhs);
|
this.removeAbbreviation(filter, lhs);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -734,7 +734,7 @@ function History() //{{{
|
|||||||
{
|
{
|
||||||
let sh = window.getWebNavigation().sessionHistory;
|
let sh = window.getWebNavigation().sessionHistory;
|
||||||
|
|
||||||
context.anchor = false;
|
context.anchored = false;
|
||||||
context.completions = [sh.getEntryAtIndex(i, false) for (i in util.range(sh.index, 0, true))];
|
context.completions = [sh.getEntryAtIndex(i, false) for (i in util.range(sh.index, 0, true))];
|
||||||
context.keys = { text: function (item) item.URI.spec, description: "title" };
|
context.keys = { text: function (item) item.URI.spec, description: "title" };
|
||||||
},
|
},
|
||||||
@@ -780,7 +780,7 @@ function History() //{{{
|
|||||||
{
|
{
|
||||||
let sh = window.getWebNavigation().sessionHistory;
|
let sh = window.getWebNavigation().sessionHistory;
|
||||||
|
|
||||||
context.anchor = false;
|
context.anchored = false;
|
||||||
context.completions = [sh.getEntryAtIndex(i, false) for (i in util.range(sh.index + 1, sh.count))];
|
context.completions = [sh.getEntryAtIndex(i, false) for (i in util.range(sh.index + 1, sh.count))];
|
||||||
context.keys = { text: function (item) item.URI.spec, description: "title" };
|
context.keys = { text: function (item) item.URI.spec, description: "title" };
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user