diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2024-01-03 18:52:52 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-01-03 19:07:21 +0100 |
commit | bf44b69d1f91d9778ae1887128c63d35d9a3d19b (patch) | |
tree | 3c66fa07c2c6baa3a2a81c75b64799306e806cf3 /src/fold.c | |
parent | b5352931b354eb67eb7d223cc09c98dcf1b547b6 (diff) |
patch 9.1.0001: when closing window, wincmd p may failv9.1.0001
Avoid `prevwin == curwin` when closing `curwin`
Problem: When closing the current window (or when moving it to a tabpage), the
previous window may refer to the new current window
(`winnr() == winnr('#')`) if that window is selected as the
new current window.
Solution: Set `prevwin = NULL` when switching away from an invalid `curwin` and
the target window was the `prevwin`.
(Sean Dewar)
related: #4537
closes: #13762
Signed-off-by: Sean Dewar <seandewar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/fold.c')
0 files changed, 0 insertions, 0 deletions