diff options
author | Doug Kearns <dougkearns@gmail.com> | 2008-12-10 17:02:54 +1100 |
---|---|---|
committer | Doug Kearns <dougkearns@gmail.com> | 2008-12-10 17:02:54 +1100 |
commit | aec2c278c2da8ed0dc9893ea354329fa54382e26 (patch) | |
tree | c1b0d57fd97e8489b4253b5f7c534a92c0c281b9 /common/content/editor.js | |
parent | 90b2fba6114fbbce42473f4dc94fcfe813c3f8eb (diff) | |
download | pentadactyl-aec2c278c2da8ed0dc9893ea354329fa54382e26.tar.gz |
use argCount: "1" with :*unabbrev commands
Diffstat (limited to 'common/content/editor.js')
-rw-r--r-- | common/content/editor.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/content/editor.js b/common/content/editor.js index 597129e9..8d0073b5 100644 --- a/common/content/editor.js +++ b/common/content/editor.js @@ -179,7 +179,11 @@ function Editor() //{{{ commands.add([ch ? ch + "una[bbrev]" : "una[bbreviate]"], "Remove an abbreviation" + modeDescription, - function (args) { editor.removeAbbreviation(mode, args.string); }); + function (args) { editor.removeAbbreviation(mode, args.literalArg); }, + { + argCount: "1", + literal: 0 + }); commands.add([ch + "abc[lear]"], "Remove all abbreviations" + modeDescription, |