| To: vim-dev@vim.org |
| Subject: Patch 7.0.043 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.0.043 |
| Problem: Using "%!" at the start of 'statusline' doesn't work. |
| Solution: Recognize the special item when the option is being set. |
| Files: src/option.c |
| |
| |
| |
| |
| |
| *** 6325,6331 **** |
| else |
| errmsg = check_stl_option(p_ruf); |
| } |
| ! else |
| errmsg = check_stl_option(s); |
| if (varp == &p_ruf && errmsg == NULL) |
| comp_col(); |
| --- 6325,6332 ---- |
| else |
| errmsg = check_stl_option(p_ruf); |
| } |
| ! /* check 'statusline' only if it doesn't start with "%!" */ |
| ! else if (varp != &p_stl || s[0] != '%' || s[1] != '!') |
| errmsg = check_stl_option(s); |
| if (varp == &p_ruf && errmsg == NULL) |
| comp_col(); |
| |
| |
| |
| *** 668,669 **** |
| --- 668,671 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 43, |
| /**/ |
| |
| -- |
| There's no place like $(HOME)! |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ download, build and distribute -- http://www.A-A-P.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |