vim-fix-xml-crash.patch 752 B

1234567891011121314151617181920212223242526
  1. --- runtime/ftplugin/xml.vim.orig 2010-05-15 14:04:03.000000000 +0300
  2. +++ runtime/ftplugin/xml.vim 2010-08-21 01:12:43.218840497 +0300
  3. @@ -13,13 +13,6 @@
  4. set cpo-=C
  5. setlocal commentstring=<!--%s-->
  6. -setlocal comments=s:<!--,m:\ \ \ \ \ ,e:-->
  7. -
  8. -setlocal formatoptions-=t
  9. -if !exists("g:ft_xml_autocomment") || (g:ft_xml_autocomment == 1)
  10. - setlocal formatoptions+=croql
  11. -endif
  12. -
  13. " XML: thanks to Johannes Zellner and Akbar Ibrahim
  14. " - case sensitive
  15. @@ -56,7 +49,7 @@
  16. endif
  17. " Undo the stuff we changed.
  18. -let b:undo_ftplugin = "setlocal commentstring< comments< formatoptions<" .
  19. +let b:undo_ftplugin = "setlocal cms<" .
  20. \ " | unlet! b:match_ignorecase b:match_words b:browsefilter"
  21. " Restore the saved compatibility options.