To: vim-dev@vim.org Subject: Patch 6.3b.005 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.3b.005 Problem: ":echo &g:ai" results in the local option value. (Salman Halim) Solution: Pass the flags from find_option_end() to get_option_value(). Files: src/eval.c *** ../vim-6.3b.004/src/eval.c Sun May 16 22:38:42 2004 --- src/eval.c Wed May 26 16:34:38 2004 *************** *** 2476,2482 **** c = *option_end; *option_end = NUL; opt_type = get_option_value(*arg, &numval, ! retvar == NULL ? NULL : &stringval, 0); if (opt_type == -3) /* invalid name */ { --- 2476,2482 ---- c = *option_end; *option_end = NUL; opt_type = get_option_value(*arg, &numval, ! retvar == NULL ? NULL : &stringval, opt_flags); if (opt_type == -3) /* invalid name */ { *** ../vim-6.3b.004/src/version.c Tue May 25 18:14:14 2004 --- src/version.c Wed May 26 16:40:56 2004 *************** *** 643,644 **** --- 643,646 ---- { /* Add new patch number below this line */ + /**/ + 5, /**/ -- Managers are like cats in a litter box. They instinctively shuffle things around to conceal what they've done. (Scott Adams - The Dilbert principle) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///