1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 04:07:59 +01:00

No mapping found

This commit is contained in:
Kris Maglione
2008-12-05 07:31:58 -05:00
parent bf25c4fe6a
commit 0e13ddd166
3 changed files with 8 additions and 15 deletions

View File

@@ -208,12 +208,13 @@ function Hints() //{{{
let hint = pageHints[i];
[elem, text, span, imgspan] = hint;
if (!validHint(text))
{
span.style.display = "none";
let valid = validHint(text);
span.style.display = (valid ? "" : "none");
if (imgspan)
imgspan.style.display = "none";
imgspan.style.display = (valid ? "" : "none");
if (!valid)
{
elem.removeAttributeNS(NS.uri, "highlight");
continue inner;
}
@@ -238,7 +239,6 @@ function Hints() //{{{
setClass(imgspan, activeHint == hintnum)
}
span.style.display = "inline";
span.setAttribute("number", hintnum++);
if (imgspan)
imgspan.setAttribute("number", hintnum);

View File

@@ -401,7 +401,7 @@ function Mappings() //{{{
// TODO: Move this to an ItemList to show this automatically
if (list.*.length() == list.text().length())
{
liberator.echo(<div highlight="Title">No mappings found</div>, commandline.FORCE_MULTILINE);
liberator.echo("No mapping found");
return;
}
commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE);

View File

@@ -241,7 +241,7 @@ function CommandLine() //{{{
if (show)
{
this.itemList.reset();
this.select(this.RESET);
this.selected = null;
this.wildIndex = 0;
}
@@ -251,16 +251,9 @@ function CommandLine() //{{{
_reset: function _reset()
{
this.prefix = this.context.value.substring(0, this.start);
this.value = this.context.value.substring(this.start, this.caret);
this.suffix = this.context.value.substring(this.caret);
this.itemList.reset();
this.itemList.selectItem(this.selected);
this.wildIndex = 0;
this.wildtypes = this.wildmode.values;
this.preview();
},