aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/python.vim
diff options
context:
space:
mode:
authorSean Dewar <6256228+seandewar@users.noreply.github.com>2025-08-22 13:54:05 +0100
committerSean Dewar <6256228+seandewar@users.noreply.github.com>2025-08-26 09:49:12 +0100
commite6ba78919c223bd8871825edaebfa7dc92a62bf6 (patch)
tree43af5f1fa2d3be9c60bc22a2417e31b771f804b0 /runtime/syntax/python.vim
parentc845f1923d0f0a3f69606de4987d4e2d95856922 (diff)
downloadrneovim-e6ba78919c223bd8871825edaebfa7dc92a62bf6.tar.gz
rneovim-e6ba78919c223bd8871825edaebfa7dc92a62bf6.tar.bz2
rneovim-e6ba78919c223bd8871825edaebfa7dc92a62bf6.zip
fix(terminal): possibly wrong wrow/wcol in active terminal
Problem: w_wrow/col calculation in terminal_check_cursor is wrong when the terminal is smaller than the window. Common when there's a larger window open with the same terminal, or just after a resize (as refresh_size is deferred). Solution: don't calculate it; validate_cursor will correct it later if it's out-of-date. Note that the toplines set for the terminal (also before this PR) assume 'nowrap' (which is set by default for terminal windows), and that no weird stuff like filler lines are around. That means, for example, it's possible for the cursor to be moved off-screen if there's wrapped lines. If this happens, it's likely update_topline will move the cursor back on screen via validate_cursor or similar, but maybe this should be handled more elegantly in the future?
Diffstat (limited to 'runtime/syntax/python.vim')
0 files changed, 0 insertions, 0 deletions