Hi bram.
Try following.
$ ls -1F
foo
bar/
$ vim --noplugin -i NONE
:cnoremap <C-p> <Up>
:e <Tab>
:e foo/
:e foo/<S-Tab>
:e
:e <C-p>
:e ../^I
This cause that different behavior between <up> and <down> in filename
completion in command line.
Please check and include.
diff -r fb6b43d55773 src/ex_getln.c
--- a/src/ex_getln.c Fri Sep 30 18:35:57 2011 +0200
+++ b/src/ex_getln.c Mon Oct 03 17:14:54 2011 +0900
@@ -589,7 +589,12 @@
c = p_wc;
}
}
- else if (c == K_UP)
+ else if (c == K_UP
+ && ccline.cmdpos > 0
+ && ccline.cmdbuff[ccline.cmdpos - 1] == PATHSEP
+ && (ccline.cmdpos < 3
+ || ccline.cmdbuff[ccline.cmdpos - 2] != '.'
+ || ccline.cmdbuff[ccline.cmdpos - 3] != '.'))
{
/* go up a directory */
int found = FALSE;
--
--
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