From c24b6977a1ec76bf48bd38b8055761a80ff1d83c Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 16 Aug 2010 22:34:29 +0200 Subject: [PATCH] updated for version 7.3.002 Problem: ":find" completion doesn't work when halfway an environment variable. (Dominique Pelle) Solution: Only use in-path completion when expanding file names. (Nazri Ramliy) --- src/ex_docmd.c | 3 ++- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ex_docmd.c b/src/ex_docmd.c index b338ed5ff4..657742e5a2 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -3465,7 +3465,8 @@ set_one_cmd_context(xp, buff) case CMD_find: case CMD_sfind: case CMD_tabfind: - xp->xp_context = EXPAND_FILES_IN_PATH; + if (xp->xp_context == EXPAND_FILES) + xp->xp_context = EXPAND_FILES_IN_PATH; break; case CMD_cd: case CMD_chdir: diff --git a/src/version.c b/src/version.c index 76d3d9e26c..34d5b49ae4 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2, /**/ 1, /**/