yi-editor/yi — pull request #21 by ethercrow (2012-06-06 12:25:16+00:00)
Title: Filename complete

These changes try to make file completion in ex mode better.

The first commit fixes one case when file completion doesn't work properly, hopefully comments are descriptive enough.

The second one adds expansion of % sign into current file name like in vim, so that
```:e %``` becomes ```:e /path/to/current/file```.
I'm not sure if I did it in the right place or if there is a better way to get current filename while being in minibuffer, so review is very welcome.