diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-01-12 11:05:49 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-01-13 12:08:11 +0100 |
commit | 23c71d5182a5e717c3a1852d9d3c90e81b4735fd (patch) | |
tree | e6966f2a6cf3d2f3e230cfb95b2a84880a9975b6 /test/functional/lua/utility_functions_spec.lua | |
parent | 9c75929e7b376a6f57246a954d2e0c5f3a1bc655 (diff) | |
download | rneovim-23c71d5182a5e717c3a1852d9d3c90e81b4735fd.tar.gz rneovim-23c71d5182a5e717c3a1852d9d3c90e81b4735fd.tar.bz2 rneovim-23c71d5182a5e717c3a1852d9d3c90e81b4735fd.zip |
display: unify cursorline and concealcursor redraw logic
There is various places where 'conceallevel' and 'concealcursor'
necessitates additional redraws. This tries to separate the different
cases and handle each accordingly:
- Share code with 'cursorline' for the common case: vertical move of
cursor within the same window (concealcursor not active)
- Improve the logic for managing 'concealcursor' and switching modes:
test for the case where the new mode behaves differently from the
last one.
- Clarify the special case for horizontal movement within a line when
'concealcursor' is active, now there is an if-statement only for this
and not hidden in larger check mostly for the first point.
- Keep the special case for moving between windows as is.
Diffstat (limited to 'test/functional/lua/utility_functions_spec.lua')
0 files changed, 0 insertions, 0 deletions