aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/move.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-04-15 06:11:30 +0800
committerGitHub <noreply@github.com>2024-04-15 06:11:30 +0800
commit6685481dfa68e690dafb14c9f8570ac29293f9da (patch)
tree245c466842ee788fa9ee7084436c8b31c6a34587 /src/nvim/move.c
parent1d73ecda7f9be51371096989e5f1b351caf55d83 (diff)
downloadrneovim-6685481dfa68e690dafb14c9f8570ac29293f9da.tar.gz
rneovim-6685481dfa68e690dafb14c9f8570ac29293f9da.tar.bz2
rneovim-6685481dfa68e690dafb14c9f8570ac29293f9da.zip
vim-patch:9.1.0320: Wrong cursor position after using setcellwidths() (#28334)
Problem: Wrong cursor position after using setcellwidths(). Solution: Invalidate cursor position in addition to redrawing. (zeertzjq) closes: vim/vim#14545 https://github.com/vim/vim/commit/05aacec6ab5c7ed8a13bbdca2f0005d6a1816230 Reorder functions in test_utf8.vim to match upstream.
Diffstat (limited to 'src/nvim/move.c')
-rw-r--r--src/nvim/move.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/move.c b/src/nvim/move.c
index 9de86e5aeb..3615959a02 100644
--- a/src/nvim/move.c
+++ b/src/nvim/move.c
@@ -546,6 +546,14 @@ void changed_window_setting(win_T *wp)
redraw_later(wp, UPD_NOT_VALID);
}
+/// Call changed_window_setting() for every window.
+void changed_window_setting_all(void)
+{
+ FOR_ALL_TAB_WINDOWS(tp, wp) {
+ changed_window_setting(wp);
+ }
+}
+
// Set wp->w_topline to a certain number.
void set_topline(win_T *wp, linenr_T lnum)
{