1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 17:27:57 +01:00

regexp catches also commands with \!

This commit is contained in:
Marco Candrian
2007-11-17 11:10:04 +00:00
parent 51332e41a9
commit 1b05946b56

View File

@@ -589,7 +589,7 @@ vimperator.Completion = function () // {{{
var command = vimperator.commands.get(cmd); var command = vimperator.commands.get(cmd);
if (command && command.completer) if (command && command.completer)
{ {
matches = str.match(/^:*\d*\w+\s+/); matches = str.match(/^:*\d*\w+!?\s+/);
start = matches ? matches[0].length : 0; start = matches ? matches[0].length : 0;
// TODO: maybe we should move these checks to the complete functions // TODO: maybe we should move these checks to the complete functions