mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-27 01:33:32 +01:00
Fix beeping when no completions available.
This commit is contained in:
@@ -426,6 +426,8 @@ function CommandLine() //{{{
|
|||||||
// a previous context come in.
|
// a previous context come in.
|
||||||
if (idx < 0)
|
if (idx < 0)
|
||||||
idx = this.items.length - 1;
|
idx = this.items.length - 1;
|
||||||
|
if (this.items.length == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
this.selected = idx;
|
this.selected = idx;
|
||||||
this.completion = this.items[idx].text;
|
this.completion = this.items[idx].text;
|
||||||
@@ -449,7 +451,7 @@ function CommandLine() //{{{
|
|||||||
|
|
||||||
while (this.tabs.length)
|
while (this.tabs.length)
|
||||||
{
|
{
|
||||||
reverse = this.tabs.pop();
|
reverse = this.tabs.shift();
|
||||||
switch (this.wildtype.replace(/.*:/, ""))
|
switch (this.wildtype.replace(/.*:/, ""))
|
||||||
{
|
{
|
||||||
case "":
|
case "":
|
||||||
|
|||||||
Reference in New Issue
Block a user