mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-24 06:45:46 +01:00
Import some fixes from Vimperator. Thanks anekos, teramoko, and stepnem.
This commit is contained in:
@@ -973,11 +973,11 @@ const Commands = Module("commands", {
|
||||
bookmark: "bookmark", buffer: "buffer", color: "colorScheme",
|
||||
command: "command", dialog: "dialog", dir: "directory",
|
||||
environment: "environment", event: "autocmdEvent", file: "file",
|
||||
help: "help", highlight: "highlightGroup", javascript: "javascript",
|
||||
macro: "macro", mapping: "userMapping", menu: "menuItem",
|
||||
option: "option", preference: "preference", search: "search",
|
||||
shellcmd: "shellCommand", sidebar: "sidebar", url: "url",
|
||||
usercommand: "userCommand"
|
||||
help: "help", highlight: "highlightGroup", history: "history",
|
||||
javascript: "javascript", macro: "macro", mapping: "userMapping",
|
||||
menu: "menuItem", option: "option", preference: "preference",
|
||||
search: "search", shellcmd: "shellCommand", sidebar: "sidebar",
|
||||
url: "url", usercommand: "userCommand"
|
||||
};
|
||||
|
||||
// TODO: Vim allows commands to be defined without {rep} if there are {attr}s
|
||||
@@ -1018,7 +1018,7 @@ const Commands = Module("commands", {
|
||||
};
|
||||
}
|
||||
else
|
||||
completeFunc = completion[completeOptionMap[completeOpt]];
|
||||
completeFunc = completion.closure[completeOptionMap[completeOpt]];
|
||||
}
|
||||
|
||||
let added = commands.addUserCommand([cmd],
|
||||
|
||||
Reference in New Issue
Block a user