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