aboutsummaryrefslogtreecommitdiff
path: root/runtime/plugin/python_setup.vim
diff options
context:
space:
mode:
authorSébastien Hoffmann <contact@shoffmann.dev>2026-08-01 12:29:54 +0200
committerSébastien Hoffmann <contact@shoffmann.dev>2026-08-04 06:36:58 +0200
commit81261804a8e335f9a97f0c4b2e8e70c59593ccca (patch)
tree3e09922d4d12d58cf98b5721a1d1726ca04952f1 /runtime/plugin/python_setup.vim
parentdc21aa07f7bbe50780e0f18b32f357242bd7c6f2 (diff)
downloadrneovim-81261804a8e335f9a97f0c4b2e8e70c59593ccca.tar.gz
rneovim-81261804a8e335f9a97f0c4b2e8e70c59593ccca.tar.bz2
rneovim-81261804a8e335f9a97f0c4b2e8e70c59593ccca.zip
fix(ruler): always clear ruler when disabled
Problem: the ruler is not cleared in the following circumstances: - ui1 is running - 'rulerformat' is configured - the default ruler was not previously visible in the last line, for example because 'rulerformat' is configured in init.lua - 'ruler' is disabled without using the command-line, for example via key-binding (entering the command-line would clear the ruler) The corresponding test case did not fail because 'rulerformat' was set while the default ruler was shown. Solution: use a dedicated variable for tracking whether the ui1 ruler was previously shown in the last line. `did_ruler_col` is now only used for setting `msg_col`, which is not implemented in the case where 'rulerformat' is configured. Reorder the test code to make the individual checks more independent from each other, and to reflect the future where 'rulerformat' will never be empty. Note that the check where 'rulerformat' was configured relied on the default ruler not being cleared and a stale "0," still being shown in front of the new ruler - this is also fixed with ui2.
Diffstat (limited to 'runtime/plugin/python_setup.vim')
0 files changed, 0 insertions, 0 deletions