Skip to content
This repository was archived by the owner on Jul 29, 2023. It is now read-only.

Commit 273ad7b

Browse files
augustomeloYggdroot
authored andcommitted
Fixed set conceal options (#186)
* Fixed set conceal options This change was necessary because the let &l:concealcursor and &l:conceallevel when set locally will set it to the entire window (vim documentation), so it need to be reset every time the buffer changes. * Re-added BufWinEnter BufEnter runs before processing the modeline, so to process the modelines as well the BufWinEnter is necessary.
1 parent 0ab6f7a commit 273ad7b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

after/plugin/indentLine.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ endfunction
139139
"{{{1 function! s:Setup()
140140
function! s:Setup()
141141
if index(g:indentLine_fileTypeExclude, &filetype) isnot -1
142+
let &l:concealcursor = ""
143+
let &l:conceallevel = "0"
142144
return
143145
endif
144146

@@ -198,7 +200,7 @@ endfunction
198200
"{{{1 augroup indentLine
199201
augroup indentLine
200202
autocmd!
201-
autocmd BufWinEnter * call <SID>Setup()
203+
autocmd BufWinEnter,BufEnter * call <SID>Setup()
202204
autocmd User * if exists("b:indentLine_enabled") && b:indentLine_enabled ||
203205
\ exists("b:indentLine_leadingSpaceEnabled") && b:indentLine_leadingSpaceEnabled |
204206
\ call <SID>Setup() |

0 commit comments

Comments
 (0)