# HG changeset patch
# User Ben Fritz <btfritz@rockwellcollins.com>
# Date 1331659439 18000
# Node ID 867ebb420003a4620492d9f65e53e961b72ba5a6
# Parent  c833b8eb8a55e828181e1503ed0cce32c943969d
make uncopyable regions actually work by intentionally generating invalid markup

diff -r c833b8eb8a55 -r 867ebb420003 syntax/2html.vim
--- a/syntax/2html.vim	Tue Mar 13 10:36:42 2012 -0500
+++ b/syntax/2html.vim	Tue Mar 13 12:23:59 2012 -0500
@@ -348,7 +348,7 @@
     let wrapperfunc_lines += [
 	  \ '    if a:make_unselectable',
 	  \ '      return "<span class=\"" . l:style_name .'.diffstyle.'"\">'.
-	  \                '<input class=\"" . l:style_name .'.diffstyle.'"\"'.
+	  \                '<input type=''invalid_input_type'' class=\"" . l:style_name .'.diffstyle.'"\"'.
 	  \                 ' value=\"".substitute(a:unformatted,''\s\+$'',"","")."\"'.
 	  \                 ' onselect=''this.blur(); return false;'''.
 	  \                 ' onmousedown=''this.blur(); return false;'''.
@@ -463,7 +463,7 @@
   "
   " Wrap the whole thing in a span for the 1px padding workaround for gaps.
   function! s:FoldColumn_build(char, len, numfill, char2, class, click)
-    let l:input_open = "<input readonly='readonly'".
+    let l:input_open = "<input type='invalid_input_type' readonly='readonly'".
 	  \ " onselect='this.blur(); return false;'".
 	  \ " onmousedown='this.blur(); ".a:click."; return false;'".
 	  \ " onclick='return false;' size='1' "
