diff options
author | Ted Pavlic <ted@tedpavlic.com> | 2009-01-16 15:33:43 -0500 |
---|---|---|
committer | Ted Pavlic <ted@tedpavlic.com> | 2009-01-16 15:33:43 -0500 |
commit | ba948246cc11476e54fd2d238efb73e3a61e05de (patch) | |
tree | c2a8b68fb82cc191f4228c544c7b3abaabe77918 /common/content/editor.js | |
parent | 22d3bc470b56553c8ec566199e86edd4715aaeec (diff) | |
download | pentadactyl-ba948246cc11476e54fd2d238efb73e3a61e05de.tar.gz |
Fix ":abbr this'is'a'test" to return an error, like Vim.
Also note in map.txt that :abbr LHS cannot contain quotes or spaces.
Diffstat (limited to 'common/content/editor.js')
-rw-r--r-- | common/content/editor.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/content/editor.js b/common/content/editor.js index 4dc0f8d1..a8f4c481 100644 --- a/common/content/editor.js +++ b/common/content/editor.js @@ -164,7 +164,7 @@ function Editor() //{{{ "Abbreviate a key sequence" + modeDescription, function (args) { - let matches = args.string.match(/^([^\s"']*)\s*(.*)/); + let matches = args.string.match(/^\s*([^\s"']*)(?:\s*$|\s+(.*))/); if (! matches) { liberator.echoerr("E474: Invalid argument"); |