Skip to content

Commit

Permalink
Fix checks for autocommand support
Browse files Browse the repository at this point in the history
  • Loading branch information
rbong committed Sep 1, 2023
1 parent 747a954 commit 3a54227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/crystalline.vim
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ function! crystalline#InitStatusline() abort
augroup CrystallineAutoUpdateStatusline
au!
au BufWinEnter,WinEnter,WinLeave * call crystalline#UpdateStatusline(win_getid())
if exists('#CmdWinEnter') && exists('#CmdlineEnter') && exists('#CmdlineLeave')
if exists('##CmdWinEnter') && exists('##CmdlineEnter') && exists('##CmdlineLeave')
au CmdWinEnter,CmdlineEnter,CmdlineLeave : call crystalline#UpdateStatusline(win_getid())
endif
augroup END
Expand All @@ -585,7 +585,7 @@ function! crystalline#InitTabline() abort
if exists('+tabline')
augroup CrystallineAutoUpdateTabline
au!
if exists('#ModeChanged')
if exists('##ModeChanged')
au ModeChanged * call crystalline#UpdateTabline()
endif
au InsertLeave * call crystalline#UpdateTabline()
Expand Down

0 comments on commit 3a54227

Please sign in to comment.