aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/buffer.c
diff options
context:
space:
mode:
authorgmntroll <37435952+gmntroll@users.noreply.github.com>2021-09-26 05:48:06 +0500
committerGitHub <noreply@github.com>2021-09-25 17:48:06 -0700
commit8b0e6cc05d767d414cfeb31ba90405b6e745fd9d (patch)
tree4341feb6ff7c36eb32d7923d2ac5a43551295c62 /src/nvim/api/buffer.c
parent2f9b9e61d7417183f2d9f36d804247c0926be9d4 (diff)
downloadrneovim-8b0e6cc05d767d414cfeb31ba90405b6e745fd9d.tar.gz
rneovim-8b0e6cc05d767d414cfeb31ba90405b6e745fd9d.tar.bz2
rneovim-8b0e6cc05d767d414cfeb31ba90405b6e745fd9d.zip
fix(api): fix crash after set_option_value_for() #15390
Problem: This crashes Nvim: tabedit call nvim_win_set_option(1000, 'statusline', 'status') split wincmd J wincmd j Solution: - Change `no_display` parameter value to be the same as in matching `restore_win_noblock` call. In case of different values `topframe` isn't restored to `curtab->tp_topframe`. - Call `restore_win_noblock` if `switch_win_noblock` returns `FAIL` (`switch_win` must always have matching `restore_win`) - Change `switch_win`/`restore_win` to `_noblock` versions to allow autocommands. fixes #14097 fixes #13577
Diffstat (limited to 'src/nvim/api/buffer.c')
0 files changed, 0 insertions, 0 deletions