runtime: :TOhtml workaround for missing 'vts' option #10960

Hot fix for 0.4
This commit should be reverted when &vts option is added.

close #10831
This commit is contained in:
Björn Linse
2019-09-06 21:10:46 +02:00
committed by Justin M. Keyes
parent 8db62ac57d
commit 754ea8d27e
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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