Allow also completion for whitespace prefixed commands.
authorDaniel Carl <danielcarl@gmx.de>
Thu, 27 Apr 2017 19:32:48 +0000 (21:32 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Thu, 27 Apr 2017 20:12:59 +0000 (22:12 +0200)
commit43e4c5876d76b5a3183e25a5b0aa7e9c64899c97
tree105447779e9f11dd665f084bfdb7e74ebffcfe59
parentaedf17db09771100122503aae3a20f8d450f36ba
Allow also completion for whitespace prefixed commands.

We allow to put whitespace or additional ':' before ex commands to avoid
recoding of the commands in the history. But in the completion only the
first ':' was skipped to get the command to apply completion for.
So ': open foo<Tab>' did not start completion, because ' open' is none
known command.
So skip all ':' and whitespace after the first ':' to set the pointer to
the beginning of the command.
src/ex.c