summaryrefslogtreecommitdiff
path: root/runtime/autoload/tohtml.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/autoload/tohtml.vim')
-rw-r--r--runtime/autoload/tohtml.vim10
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/autoload/tohtml.vim b/runtime/autoload/tohtml.vim
index c189b188f..c24d6ff42 100644
--- a/runtime/autoload/tohtml.vim
+++ b/runtime/autoload/tohtml.vim
@@ -1,6 +1,6 @@
" Vim autoload file for the tohtml plugin.
" Maintainer: Ben Fritz <fritzophrenic@gmail.com>
-" Last Change: 2010 Aug 06
+" Last Change: 2010 Aug 12
"
" Additional contributors:
"
@@ -52,6 +52,11 @@ func! tohtml#Diff2HTML(win_list, buf_list)
let xml_line = ""
let tag_close = '>'
+ let s:old_paste = &paste
+ set paste
+ let s:old_magic = &magic
+ set magic
+
if s:settings.use_xhtml
if s:settings.encoding != ""
let xml_line = "<?xml version=\"1.0\" encoding=\"" . s:settings.encoding . "\"?>"
@@ -250,6 +255,9 @@ func! tohtml#Diff2HTML(win_list, buf_list)
\ ])
endif
endif
+
+ let &paste = s:old_paste
+ let &magic = s:old_magic
endfunc
" Gets a single user option and sets it in the passed-in Dict, or gives it the