ZyX wrote:
> 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
> {
Thanks.
--
All good vision statements are created by groups of people with bloated
bladders who would rather be doing anything else.
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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.