From ac4ff461d011affeebced148a8715323ca899ca1 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 1 Mar 2009 02:42:47 +0100 Subject: [PATCH] [7.2.128] Using ":lcd" makes session files not work. Problem: Using ":lcd" makes session files not work. Solution: Compare return value of mch_chdir() properly. (Andreas Bernauer) Patch 7.2.128 (after 7.2.055) --- src/ex_docmd.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 60bbb5f8..c730d761 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -8792,7 +8792,7 @@ ex_mkrc(eap) else if (*dirnow != NUL && (ssop_flags & SSOP_CURDIR) && globaldir != NULL) { - if (mch_chdir((char *)globaldir) == OK) + if (mch_chdir((char *)globaldir) == 0) shorten_fnames(TRUE); } diff --git a/src/version.c b/src/version.c index 6877f67c..4331654b 100644 --- a/src/version.c +++ b/src/version.c @@ -677,6 +677,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 128, +/**/ 127, /**/ 126, -- 2.11.4.GIT