aboutsummaryrefslogtreecommitdiff
path: root/src/clint.py
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-08-27 11:20:59 +0200
committerbfredl <bjorn.linse@gmail.com>2023-08-27 12:07:46 +0200
commit9b9030ff2ca820d4c4f4b559f86b0f9a3496645b (patch)
treee380086030f4f5cd8f65ceacaee389bc80911ee2 /src/clint.py
parentb7d5b55f74fd589dee27d8356d45b31c552705c3 (diff)
downloadrneovim-9b9030ff2ca820d4c4f4b559f86b0f9a3496645b.tar.gz
rneovim-9b9030ff2ca820d4c4f4b559f86b0f9a3496645b.tar.bz2
rneovim-9b9030ff2ca820d4c4f4b559f86b0f9a3496645b.zip
fix(api): fix inconsistent behavior of topline touched in recent refactor
The change in #24824 0081549 was not a regression, however it was an incomplete change. Unfortunately some common plugins come to depend on this exising self-inconsistent behavior. These plugins are going to need to update for 0.10 nvim_buf_set_lines used to NOT adjust the topline correctly if a buffer was displayed in just one window. However, if displayed in multiple windows, it was correctly adjusted for any window not deemed the current window for the buffer (which could be an arbitrary choice if the buffer was not already current, as noted in the last rafactor) This fixes so that all windows have their topline adjusted. The added tests show this behavior, which should be the reasonable one.
Diffstat (limited to 'src/clint.py')
0 files changed, 0 insertions, 0 deletions