1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 13:04:13 +01:00
This commit is contained in:
Kris Maglione
2008-12-02 09:26:34 +00:00
parent d1622570ea
commit d8d92aa8da
2 changed files with 6 additions and 3 deletions

View File

@@ -81,7 +81,7 @@ const template = {
icon: function (item, text)
{
let icon = this.getKey(item, "icon");
return <><span highlight="CompIcon">{icon ? <img src={icon}/> : <></>}</span>{text}</>
return <><span highlight="CompIcon">{icon ? <img src={icon}/> : <></>}</span><span class="td-strut"/>{text}</>
},
filter: function (str) <span highlight="Filter">{str}</span>,

View File

@@ -133,9 +133,10 @@ function CommandLine() //{{{
let wildmode = options.get("wildmode");
let wildType = wildmode.values[Math.min(wildIndex++, wildmode.values.length - 1)];
let first = wildmode.value == "";
let hasList = wildmode.checkHas(wildType, "list");
let longest = wildmode.checkHas(wildType, "longest");
let full = !longest && wildmode.checkHas(wildType, "full");
let full = first || !longest && wildmode.checkHas(wildType, "full");
// we need to build our completion list first
if (completionIndex == UNINITIALIZED || completionContext.waitingForTab)
@@ -166,7 +167,9 @@ function CommandLine() //{{{
}
}
if (full)
if (first)
completionIndex = 0;
else if (full)
{
if (event.shiftKey)
completionIndex--;