1847179
To: vim-dev@vim.org
1847179
Subject: patch 7.1.078
1847179
Fcc: outbox
1847179
From: Bram Moolenaar <Bram@moolenaar.net>
1847179
Mime-Version: 1.0
1847179
Content-Type: text/plain; charset=ISO-8859-1
1847179
Content-Transfer-Encoding: 8bit
1847179
------------
1847179
1847179
Patch 7.1.078
1847179
Problem:    Dropping a file name on gvim that contains a CSI byte doesn't work
1847179
	    when editing the command line.
1847179
Solution:   Escape the CSI byte when inserting in the input buffer. (Yukihiro
1847179
	    Nakadaira)
1847179
Files:	    src/gui.c, src/ui.c
1847179
1847179
1847179
*** ../vim-7.1.077/src/gui.c	Thu May 10 19:19:15 2007
1847179
--- src/gui.c	Tue Aug 14 12:41:43 2007
1847179
***************
1847179
*** 5117,5123 ****
1847179
  		p = vim_strsave_escaped(fnames[i], (char_u *)"\\ \t\"|");
1847179
  # endif
1847179
  		if (p != NULL)
1847179
! 		    add_to_input_buf(p, (int)STRLEN(p));
1847179
  		vim_free(p);
1847179
  		vim_free(fnames[i]);
1847179
  	    }
1847179
--- 5117,5123 ----
1847179
  		p = vim_strsave_escaped(fnames[i], (char_u *)"\\ \t\"|");
1847179
  # endif
1847179
  		if (p != NULL)
1847179
! 		    add_to_input_buf_csi(p, (int)STRLEN(p));
1847179
  		vim_free(p);
1847179
  		vim_free(fnames[i]);
1847179
  	    }
1847179
*** ../vim-7.1.077/src/ui.c	Thu May 10 21:14:11 2007
1847179
--- src/ui.c	Tue Aug 14 12:41:42 2007
1847179
***************
1847179
*** 1603,1610 ****
1847179
  #if defined(FEAT_GUI) || defined(FEAT_MOUSE_GPM) \
1847179
  	|| defined(FEAT_XCLIPBOARD) || defined(VMS) \
1847179
  	|| defined(FEAT_SNIFF) || defined(FEAT_CLIENTSERVER) \
1847179
- 	|| (defined(FEAT_GUI) && (!defined(USE_ON_FLY_SCROLL) \
1847179
- 		|| defined(FEAT_MENU))) \
1847179
  	|| defined(PROTO)
1847179
  /*
1847179
   * Add the given bytes to the input buffer
1847179
--- 1603,1608 ----
1847179
***************
1847179
*** 1630,1636 ****
1847179
  }
1847179
  #endif
1847179
  
1847179
! #if (defined(FEAT_XIM) && defined(FEAT_GUI_GTK)) \
1847179
  	|| (defined(FEAT_MBYTE) && defined(FEAT_MBYTE_IME)) \
1847179
  	|| (defined(FEAT_GUI) && (!defined(USE_ON_FLY_SCROLL) \
1847179
  		|| defined(FEAT_MENU))) \
1847179
--- 1628,1636 ----
1847179
  }
1847179
  #endif
1847179
  
1847179
! #if ((defined(FEAT_XIM) || defined(FEAT_DND)) && defined(FEAT_GUI_GTK)) \
1847179
! 	|| defined(FEAT_GUI_MSWIN) \
1847179
! 	|| defined(FEAT_GUI_MAC) \
1847179
  	|| (defined(FEAT_MBYTE) && defined(FEAT_MBYTE_IME)) \
1847179
  	|| (defined(FEAT_GUI) && (!defined(USE_ON_FLY_SCROLL) \
1847179
  		|| defined(FEAT_MENU))) \
1847179
*** ../vim-7.1.077/src/version.c	Tue Aug 14 23:06:51 2007
1847179
--- src/version.c	Wed Aug 15 20:07:06 2007
1847179
***************
1847179
*** 668,669 ****
1847179
--- 668,671 ----
1847179
  {   /* Add new patch number below this line */
1847179
+ /**/
1847179
+     78,
1847179
  /**/
1847179
1847179
-- 
1847179
hundred-and-one symptoms of being an internet addict:
1847179
164. You got out to buy software, instead of going out for a beer.
1847179
1847179
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
1847179
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
1847179
\\\        download, build and distribute -- http://www.A-A-P.org        ///
1847179
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///