1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 10:42:28 +01:00

Hack to hide -- COMMAND LINE -- with MOW open (what the... does multiline out mode have to do with command-line mode, anyway?)

This commit is contained in:
Kris Maglione
2010-10-12 02:57:10 -04:00
parent 3d43582f0d
commit a3ce7ae169
3 changed files with 24 additions and 25 deletions

View File

@@ -272,8 +272,10 @@ const CompletionContext = Class("CompletionContext", {
get completions() this._completions || [],
set completions(items) {
if (items && isArray(items.array))
items = items.array;
// Accept a generator
if (items && !(isArray(items) || isArray(items.__proto__)))
if (!isArray(items))
items = [x for (x in Iterator(items || []))];
if (this._completions !== items) {
delete this.cache.filtered;