mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-09 10:14:12 +01:00
Fix wim=
This commit is contained in:
@@ -81,7 +81,7 @@ const template = {
|
|||||||
icon: function (item, text)
|
icon: function (item, text)
|
||||||
{
|
{
|
||||||
let icon = this.getKey(item, "icon");
|
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>,
|
filter: function (str) <span highlight="Filter">{str}</span>,
|
||||||
|
|||||||
@@ -133,9 +133,10 @@ function CommandLine() //{{{
|
|||||||
let wildmode = options.get("wildmode");
|
let wildmode = options.get("wildmode");
|
||||||
let wildType = wildmode.values[Math.min(wildIndex++, wildmode.values.length - 1)];
|
let wildType = wildmode.values[Math.min(wildIndex++, wildmode.values.length - 1)];
|
||||||
|
|
||||||
|
let first = wildmode.value == "";
|
||||||
let hasList = wildmode.checkHas(wildType, "list");
|
let hasList = wildmode.checkHas(wildType, "list");
|
||||||
let longest = wildmode.checkHas(wildType, "longest");
|
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
|
// we need to build our completion list first
|
||||||
if (completionIndex == UNINITIALIZED || completionContext.waitingForTab)
|
if (completionIndex == UNINITIALIZED || completionContext.waitingForTab)
|
||||||
@@ -166,7 +167,9 @@ function CommandLine() //{{{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (full)
|
if (first)
|
||||||
|
completionIndex = 0;
|
||||||
|
else if (full)
|
||||||
{
|
{
|
||||||
if (event.shiftKey)
|
if (event.shiftKey)
|
||||||
completionIndex--;
|
completionIndex--;
|
||||||
|
|||||||
Reference in New Issue
Block a user