Commit 7c7a37a
committed
fix: trigger fold recomputation by querying foldlevel
Problem:
* Redrawing may break some plugins. For example, evaluating statusline
may use to buffer variables that are initialized in some autocommands.
But FastFold's autocmds may run before than them. So redrawing may
result in using some undefined variable.
* Redrawing makes the screen flash.
Solution:
Querying foldlevel seems to be sufficient for triggerring fold
recomputation.1 parent 3a1e5ed commit 7c7a37a
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
76 | 77 | | |
77 | | - | |
78 | | - | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
0 commit comments