aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/autoload/tohtml.vim2
-rw-r--r--runtime/syntax/2html.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/autoload/tohtml.vim b/runtime/autoload/tohtml.vim
index 2d874c690d..9c3d4d2d7e 100644
--- a/runtime/autoload/tohtml.vim
+++ b/runtime/autoload/tohtml.vim
@@ -779,7 +779,7 @@ func! tohtml#GetUserSettings() "{{{
if user_settings.no_pre == 0
call tohtml#GetOption(user_settings,
\ 'expand_tabs',
- \ &expandtab || &ts != 8 || &vts != '' || user_settings.number_lines ||
+ \ &expandtab || &ts != 8 || (exists("+vts") && &vts != '') || user_settings.number_lines ||
\ (user_settings.dynamic_folds && !user_settings.no_foldcolumn))
else
let user_settings.expand_tabs = 1
diff --git a/runtime/syntax/2html.vim b/runtime/syntax/2html.vim
index 4a2d1d3959..91bb0e0d4a 100644
--- a/runtime/syntax/2html.vim
+++ b/runtime/syntax/2html.vim
@@ -1570,7 +1570,7 @@ while s:lnum <= s:end
if s:settings.expand_tabs
let s:offset = 0
let s:idx = stridx(s:expandedtab, "\t")
- let s:tablist = split(&vts,',')
+ let s:tablist = exists("+vts") ? split(&vts,',') : []
if empty(s:tablist)
let s:tablist = [ &ts ]
endif