From 1b05946b5665aee5dd9f26383cf5e6c02bf147b7 Mon Sep 17 00:00:00 2001 From: Marco Candrian Date: Sat, 17 Nov 2007 11:10:04 +0000 Subject: [PATCH] regexp catches also commands with \! --- content/completion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/completion.js b/content/completion.js index 37e55a56..14fe0dbd 100644 --- a/content/completion.js +++ b/content/completion.js @@ -589,7 +589,7 @@ vimperator.Completion = function () // {{{ var command = vimperator.commands.get(cmd); if (command && command.completer) { - matches = str.match(/^:*\d*\w+\s+/); + matches = str.match(/^:*\d*\w+!?\s+/); start = matches ? matches[0].length : 0; // TODO: maybe we should move these checks to the complete functions