mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 10:57:58 +01:00
Fix completion.listCompleter.
This commit is contained in:
@@ -18,11 +18,13 @@ var StatusLine = Module("statusline", {
|
||||
if (this.statusBar.localName == "toolbar") {
|
||||
styles.system.add("addon-bar", config.styleableChrome, <css><![CDATA[
|
||||
#status-bar { margin-top: 0 !important; }
|
||||
#addon-bar { padding: 0 !important; min-height: 18px !important; -moz-appearance: none !important; }
|
||||
#addon-bar > statusbar { -moz-box-flex: 1 }
|
||||
#addon-bar > #addonbar-closebutton { visibility: collapse; }
|
||||
#addon-bar > xul|toolbarspring { visibility: collapse; }
|
||||
]]></css>);
|
||||
highlight.loadCSS(<![CDATA[
|
||||
!AddonBar;#addon-bar padding: 0 !important; min-height: 18px !important; -moz-appearance: none !important;
|
||||
]]>);
|
||||
}
|
||||
|
||||
let _commandline = "if (window.dactyl) return dactyl.modules.commandline";
|
||||
|
||||
@@ -864,7 +864,7 @@ var Completion = Module("completion", {
|
||||
listCompleter: function listCompleter(name, filter, maxItems) {
|
||||
let context = modules.CompletionContext(filter || "");
|
||||
context.maxItems = maxItems;
|
||||
context.fork.apply(context, ["list", 0, completion, name].concat(Array.slice(arguments, 3)));
|
||||
context.fork.apply(context, ["list", 0, this, name].concat(Array.slice(arguments, 3)));
|
||||
context = context.contexts["/list"];
|
||||
context.wait();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user