According to the documentation `:e + file` should position cursor to the last
line of the file. This works for `:e + ` (`:e<space>+<space>`) and for `:e +
file` (again there is a space). But if you use `:e +` (`:e<space>+`, no
trailing space) it will position the cursor at the start of the file.
Fix is simple:
diff -r 34723a1b096f src/ex_docmd.c
--- a/src/ex_docmd.c Sun Mar 30 16:11:43 2014 +0200
+++ b/src/ex_docmd.c Sun Mar 30 21:34:36 2014 +0400
@@ -4852,7 +4852,7 @@
if (*arg == '+') /* +[command] */
{
++arg;
- if (vim_isspace(*arg))
+ if (vim_isspace(*arg) || *arg == NUL)
command = dollar_command;
else
{
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.