From fca5a5e7449a1133a2fafbd09c9675d1b45ae238 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Mon, 14 Apr 2014 15:40:57 +0200 Subject: vim-patch:7.4.239 Problem: ":e +" does not position cursor at end of the file. Solution: Check for "+" being the last character (ZyX) https://code.google.com/p/vim/source/detail?r=98bfec9ea7608f312129475d4ca0ae6d1c6c232e --- src/ex_docmd.c | 2 +- src/version.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ex_docmd.c b/src/ex_docmd.c index e4041cf862..e6218bd15f 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -3924,7 +3924,7 @@ static char_u *getargcmd(char_u **argp) if (*arg == '+') { /* +[command] */ ++arg; - if (vim_isspace(*arg)) + if (vim_isspace(*arg) || *arg == '\0') command = dollar_command; else { command = arg; diff --git a/src/version.c b/src/version.c index 687a5161ad..595d5a13c3 100644 --- a/src/version.c +++ b/src/version.c @@ -222,7 +222,7 @@ static int included_patches[] = { //241, //240, //240, - //239, + 239, //238, //237, //236, -- cgit