Skip to content

Commit

Permalink
IndentLine handlings
Browse files Browse the repository at this point in the history
  • Loading branch information
haya14busa committed Jan 21, 2016
1 parent f5ecb99 commit 74fc979
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions autoload/vital/_easymotion/HitAHint/Motion.vim
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,11 @@ function! s:Hinter.modify_env_for_win(winnr) abort
endif
let self.highlight_ids[a:winnr] += [matchadd(self.config.highlight.shade, '\_.*', 100)]
endif

" XXX: other plugins specific handling
if getbufvar('%', 'indentLine_enabled', 0)
silent! syntax clear IndentLine
endif
endfunction

function! s:Hinter.restore_env() abort
Expand All @@ -379,6 +384,12 @@ function! s:Hinter.restore_env() abort
for id in self.highlight_ids[winnr]
call matchdelete(id)
endfor

" XXX: other plugins specific handling
if getbufvar('%', 'indentLine_enabled', 0) && exists(':IndentLinesEnable') is# 2
call setbufvar('%', 'indentLine_enabled', 0)
:IndentLinesEnable
endif
endfor
catch
call s:throw(v:throwpoint . ' ' . v:exception)
Expand Down

0 comments on commit 74fc979

Please sign in to comment.