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 authored and Justin M. Keyes committed 2019-09-06 12:10:46 -07:00
1 parent 8db62ac57d
commit 754ea8d27e
2 files changed
+2 -2

No files matched your search

+1 -1
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
+1 -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