Karsten Hopp 8fc669
To: vim_dev@googlegroups.com
Karsten Hopp 8fc669
Subject: Patch 7.3.347
Karsten Hopp 8fc669
Fcc: outbox
Karsten Hopp 8fc669
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 8fc669
Mime-Version: 1.0
Karsten Hopp 8fc669
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 8fc669
Content-Transfer-Encoding: 8bit
Karsten Hopp 8fc669
------------
Karsten Hopp 8fc669
Karsten Hopp 8fc669
Patch 7.3.347
Karsten Hopp 8fc669
Problem:    When dropping text from a browser on Vim it receives HTML even
Karsten Hopp 8fc669
	    though "html" is excluded from 'clipboard'. (Andrei Avk)
Karsten Hopp 8fc669
Solution:   Fix the condition for TARGET_HTML.
Karsten Hopp 8fc669
Files:	    src/gui_gtk_x11.c
Karsten Hopp 8fc669
Karsten Hopp 8fc669
Karsten Hopp 8fc669
*** ../vim-7.3.346/src/gui_gtk_x11.c	2011-08-10 17:44:41.000000000 +0200
Karsten Hopp 8fc669
--- src/gui_gtk_x11.c	2011-10-23 20:56:38.000000000 +0200
Karsten Hopp 8fc669
***************
Karsten Hopp 8fc669
*** 3081,3087 ****
Karsten Hopp 8fc669
  
Karsten Hopp 8fc669
      for (i = 0; i < (int)N_DND_TARGETS; ++i)
Karsten Hopp 8fc669
      {
Karsten Hopp 8fc669
! 	if (!clip_html && selection_targets[i].info == TARGET_HTML)
Karsten Hopp 8fc669
  	    n_targets--;
Karsten Hopp 8fc669
  	else
Karsten Hopp 8fc669
  	    targets[j++] = dnd_targets[i];
Karsten Hopp 8fc669
--- 3081,3087 ----
Karsten Hopp 8fc669
  
Karsten Hopp 8fc669
      for (i = 0; i < (int)N_DND_TARGETS; ++i)
Karsten Hopp 8fc669
      {
Karsten Hopp 8fc669
! 	if (!clip_html && dnd_targets[i].info == TARGET_HTML)
Karsten Hopp 8fc669
  	    n_targets--;
Karsten Hopp 8fc669
  	else
Karsten Hopp 8fc669
  	    targets[j++] = dnd_targets[i];
Karsten Hopp 8fc669
*** ../vim-7.3.346/src/version.c	2011-10-20 21:58:20.000000000 +0200
Karsten Hopp 8fc669
--- src/version.c	2011-10-26 11:35:23.000000000 +0200
Karsten Hopp 8fc669
***************
Karsten Hopp 8fc669
*** 716,717 ****
Karsten Hopp 8fc669
--- 716,719 ----
Karsten Hopp 8fc669
  {   /* Add new patch number below this line */
Karsten Hopp 8fc669
+ /**/
Karsten Hopp 8fc669
+     347,
Karsten Hopp 8fc669
  /**/
Karsten Hopp 8fc669
Karsten Hopp 8fc669
-- 
Karsten Hopp 8fc669
I AM THANKFUL...
Karsten Hopp 8fc669
...for a lawn that needs mowing, windows that need cleaning
Karsten Hopp 8fc669
and gutters that need fixing because it means I have a home.
Karsten Hopp 8fc669
Karsten Hopp 8fc669
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 8fc669
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 8fc669
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 8fc669
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///