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:
@@ -208,12 +208,13 @@ function Hints() //{{{
|
||||
let hint = pageHints[i];
|
||||
[elem, text, span, imgspan] = hint;
|
||||
|
||||
if (!validHint(text))
|
||||
{
|
||||
span.style.display = "none";
|
||||
if (imgspan)
|
||||
imgspan.style.display = "none";
|
||||
let valid = validHint(text);
|
||||
span.style.display = (valid ? "" : "none");
|
||||
if (imgspan)
|
||||
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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user