Skip to content

Commit

Permalink
Screen is not updated after a timer callback in certain versions of Vim
Browse files Browse the repository at this point in the history
A temporary patch for #33.

When version 8.0.1475 disappears from the main stream, this commit may be
reverted
  • Loading branch information
machakann committed May 4, 2018
1 parent 6387f7c commit 95cec1c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions autoload/highlightedyank.vim
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ function! s:glow(region, hi_group, duration) abort "{{{
if !highlight.show(a:hi_group)
return
endif
if !has('patch-8.0.1476') && has('patch-8.0.1449')
redraw
endif

let switchtask = s:Schedule.Task()
call switchtask.repeat(-1)
Expand Down Expand Up @@ -235,6 +238,10 @@ function! s:quench(highlight) abort "{{{
call winrestview(view)
endif
endif

if !has('patch-8.0.1476') && has('patch-8.0.1449')
redraw
endif
endfunction "}}}


Expand Down

0 comments on commit 95cec1c

Please sign in to comment.