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