Skip to content

Commit

Permalink
Cleaner regex for drawing indents.
Browse files Browse the repository at this point in the history
  • Loading branch information
thaerkh committed Jan 31, 2017
1 parent 60314fd commit a4a9d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/workspace.vim
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ function! s:ToggleIndentGuides(user_initiated)
execute "highlight Conceal ctermfg=238 ctermbg=NONE guifg=Grey27 guibg=NONE"
execute "highlight SpecialKey ctermfg=238 ctermbg=NONE guifg=Grey27 guibg=NONE"
execute 'syntax match IndentGuideSpaces /^\ \+/ containedin=ALL contains=IndentGuideDraw keepend'
execute 'syntax match IndentGuideDraw /\(^\|\ \{'.(&l:shiftwidth - 1).'}\)\zs / contained conceal cchar=┆'
execute printf('syntax match IndentGuideDraw /\(^\|\ \)\{%i}\zs / contained conceal cchar=┆', &l:shiftwidth - 1)

" TODO-TK: local and global listchars are the same, and s: variables are failing (??)
let g:original_listchars = get(g:, 'original_listchars', &g:listchars)
Expand Down

0 comments on commit a4a9d91

Please sign in to comment.