Skip to content

Commit

Permalink
Don't like to use side-effects in if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
machakann committed Sep 27, 2018
1 parent 06b1782 commit f38bbb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/highlightedyank.vim
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ function! s:glow(region, hi_group, duration) abort "{{{
if !empty(s:quenchtask) && !s:quenchtask.hasdone()
call s:quenchtask.trigger()
endif
if !highlight.show(a:hi_group)
let succeeded = highlight.show(a:hi_group)
if !succeeded
return
endif
if !has('patch-8.0.1476') && has('patch-8.0.1449')
Expand Down

0 comments on commit f38bbb0

Please sign in to comment.