To: vim_dev@googlegroups.com Subject: Patch 7.4.1670 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1670 Problem: Completion doesn't work well for a variable containing "#". Solution: Recognize the "#". (Watiko) Files: src/eval.c *** ../vim-7.4.1669/src/eval.c 2016-03-27 15:13:06.958231628 +0200 --- src/eval.c 2016-03-28 19:22:14.538197720 +0200 *************** *** 3399,3404 **** --- 3399,3410 ---- got_eq = TRUE; xp->xp_context = EXPAND_EXPRESSION; } + else if (c == '#' + && xp->xp_context == EXPAND_EXPRESSION) + { + /* Autoload function/variable contains '#'. */ + break; + } else if ((c == '<' || c == '#') && xp->xp_context == EXPAND_FUNCTIONS && vim_strchr(xp->xp_pattern, '(') == NULL) *** ../vim-7.4.1669/src/version.c 2016-03-28 19:16:15.669846492 +0200 --- src/version.c 2016-03-28 19:23:13.165601967 +0200 *************** *** 750,751 **** --- 750,753 ---- { /* Add new patch number below this line */ + /**/ + 1670, /**/ -- hundred-and-one symptoms of being an internet addict: 147. You finally give up smoking...because it made the monitor dirty. /// Bram Moolenaar -- Bram@Moolenaar.net -- 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 ///