mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-25 11:05:48 +01:00
Anchor option completion matches
This commit is contained in:
@@ -309,7 +309,7 @@ CompletionContext.prototype = {
|
||||
get substrings()
|
||||
{
|
||||
let items = this.items;
|
||||
if (items.length == 0)
|
||||
if (items.length == 0 || !this.hasItems)
|
||||
return [];
|
||||
if (this._substrings)
|
||||
return this._substrings;
|
||||
@@ -1395,6 +1395,7 @@ function Completion() //{{{
|
||||
option: function option(context, scope)
|
||||
{
|
||||
context.title = ["Option"];
|
||||
context.anchored = true;
|
||||
context.keys = { text: "names", description: "description" };
|
||||
context.completions = options;
|
||||
if (scope)
|
||||
|
||||
Reference in New Issue
Block a user