mirror of
https://github.com/neovim/neovim.git
synced 2025-12-19 04:45:38 +00:00
fix(statusline): redraw if Visual selection other end changes (#36281)
(cherry picked from commit af0f7b59b1)
This commit is contained in:
committed by
github-actions[bot]
parent
a215da823f
commit
4cc060bf44
@@ -915,7 +915,10 @@ void show_cursor_info_later(bool force)
|
||||
|| empty_line != curwin->w_stl_empty
|
||||
|| reg_recording != curwin->w_stl_recording
|
||||
|| state != curwin->w_stl_state
|
||||
|| (VIsual_active && VIsual_mode != curwin->w_stl_visual_mode)) {
|
||||
|| (VIsual_active && (VIsual_mode != curwin->w_stl_visual_mode
|
||||
|| VIsual.lnum != curwin->w_stl_visual_pos.lnum
|
||||
|| VIsual.col != curwin->w_stl_visual_pos.col
|
||||
|| VIsual.coladd != curwin->w_stl_visual_pos.coladd))) {
|
||||
if (curwin->w_status_height || global_stl_height()) {
|
||||
curwin->w_redr_status = true;
|
||||
} else {
|
||||
@@ -939,6 +942,7 @@ void show_cursor_info_later(bool force)
|
||||
curwin->w_stl_state = state;
|
||||
if (VIsual_active) {
|
||||
curwin->w_stl_visual_mode = VIsual_mode;
|
||||
curwin->w_stl_visual_pos = VIsual;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user