Skip to content

Commit 68fd7dd

Browse files
committed
fix: redraw after setting fdm
Problem: Setting fdm itself doesn't seem to trigger recomputation of fold. Solution: Explicitly redraw to force fold recomputation.
1 parent b1b6595 commit 68fd7dd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

plugin/fastfold.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ function! s:LeaveWin()
6666
if exists('w:lastfdm') && &l:foldmethod is# 'manual'
6767
let &l:foldmethod = w:lastfdm
6868
endif
69+
70+
if exists('*win_execute')
71+
redraw
72+
endif
6973
endfunction
7074

7175
" Like :windo, but restores the current window and avoids side effects.

0 commit comments

Comments
 (0)