1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 18:47:58 +01:00

Fix :!foo completion (but not :! foo completion, which works fine).

This commit is contained in:
Kris Maglione
2010-10-18 23:33:42 -04:00
parent b34fe0b741
commit 4ce5925ace
2 changed files with 8 additions and 3 deletions

View File

@@ -1001,7 +1001,7 @@ const Commands = Module("commands", {
var context = complete.fork("args", len);
}
if (!complete || /\w[!\s]/.test(str))
if (!complete || /(\w|^)[!\s]/.test(str))
args = command.parseArgs(args, context, { count: count, bang: bang });
else
args = commands.parseArgs(args, { extra: { count: count, bang: bang } });