Commit f303aed
committed
fix: use SIGWINCH to force fzf to redraw screen
Since I bind my `ctrl-l` to other actions rather than `clear-screen` so
I spot this upsteram bug again
kevinhwang91@bdc2a4e.
`resize` can trigger `clear-screen` in fzf. So this might be a better
way to force `redraw` in linux.
Related:
* ibhagwan/fzf-lua#1871
*
ibhagwan/fzf-lua#1901 (reply in thread)
> * By `resize` there's false positive: e.g. windows manager users may
often resize window manualy
> * And I'm not sure `SIGWINCH` and fzf's `resize` work correctly on
Windows.
> * By `chan_send`/`feedkeys` we override user's key bindings (although
there's already some `chan_send` hacks in codebase like: toggling
preview (this is handled better by scanning user's fzf bindings
config... but will be weird if user set bindings from
`FZF_DEFAULT_OPTS`), mirroring the `esc` to fzf (this is opt-in by a
hide profile).1 parent ebb6d26 commit f303aed
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
190 | | - | |
191 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
192 | 197 | | |
193 | 198 | | |
194 | 199 | | |
| |||
0 commit comments