2010/8/16 Dominique Pellé <[email protected]>:
> Sorry the issue of expanding ":e $HOME/<Tab>" to ":e /home/pel\$HOME"
> is not a bug after all.  I did have a file called '/home/pel/\$HOME'!
> I did not remember it but I created such an odd file name a long time
> ago to check that Vim would not expand HOME in such file name.
>
> But not expanding ":find $HOM<Tab>"  is still a (minor) issue.
> Expansion does happens with ":e $HOM<Tab>".

Attached patch seems to fix this.

I just use the same logic for "CMD_cd:" a few lines down.

nazri.

-- 
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
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index b338ed5..657742e 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:

Raspunde prin e-mail lui