Patch 7.3.372
Problem:    When using a command line mapping to <Up> with file name 
            completion to go one directory up, 'wildchar' is inserted.
            (Yasuhiro Matsumoto) 
Solution:   Set the KeyTyped flag.
Files:      src/ex_getln.c


*** ../vim-7.3.371/src/ex_getln.c       2011-10-26 22:02:10.000000000 +0200
--- src/ex_getln.c      2011-12-08 18:40:49.000000000 +0100
***************
*** 645,651 ****
--- 645,655 ----
                }
                else if (ccline.cmdpos > i)
                    cmdline_del(i);
+ 
+               /* Now complete in the new directory. Set KeyTyped in case the
+                * Up key came from a mapping. */
                c = p_wc;
+               KeyTyped = TRUE;
            }
        }
  
*** ../vim-7.3.371/src/version.c        2011-12-08 17:49:31.000000000 +0100
--- src/version.c       2011-12-08 18:42:54.000000000 +0100
***************
*** 716,717 ****
--- 716,719 ----
  {   /* Add new patch number below this line */
+ /**/
+     372,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
255. You work for a newspaper and your editor asks you to write an
     article about Internet addiction...in the "first person."

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
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

Raspunde prin e-mail lui