mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
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:
committed by
Justin M. Keyes
parent
8db62ac57d
commit
754ea8d27e
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user