mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-08 13:04:13 +01:00
Fix wim=
This commit is contained in:
@@ -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>,
|
||||
|
||||
@@ -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--;
|
||||
|
||||
Reference in New Issue
Block a user