jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone
3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.115
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.115
3ef2ca
Problem:    When using Zsh expanding ~abc doesn't work when the result
3ef2ca
	    contains a space.
3ef2ca
Solution:   Off-by-one error in detecting the NUL. (Pavol Juhas)
3ef2ca
Files:	    src/os_unix.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.114/src/os_unix.c	2013-11-03 00:40:54.000000000 +0100
3ef2ca
--- src/os_unix.c	2013-12-11 13:19:26.000000000 +0100
3ef2ca
***************
3ef2ca
*** 5990,5996 ****
3ef2ca
  	{
3ef2ca
  	    /* If there is a NUL, set did_find_nul, else set check_spaces */
3ef2ca
  	    buffer[len] = NUL;
3ef2ca
! 	    if (len && (int)STRLEN(buffer) < (int)len - 1)
3ef2ca
  		did_find_nul = TRUE;
3ef2ca
  	    else
3ef2ca
  		check_spaces = TRUE;
3ef2ca
--- 5990,5996 ----
3ef2ca
  	{
3ef2ca
  	    /* If there is a NUL, set did_find_nul, else set check_spaces */
3ef2ca
  	    buffer[len] = NUL;
3ef2ca
! 	    if (len && (int)STRLEN(buffer) < (int)len)
3ef2ca
  		did_find_nul = TRUE;
3ef2ca
  	    else
3ef2ca
  		check_spaces = TRUE;
3ef2ca
*** ../vim-7.4.114/src/version.c	2013-12-11 12:22:54.000000000 +0100
3ef2ca
--- src/version.c	2013-12-11 13:20:29.000000000 +0100
3ef2ca
***************
3ef2ca
*** 740,741 ****
3ef2ca
--- 740,743 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     115,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
Change is inevitable, except from a vending machine.
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///