From a5cf270fdfac221aff63aa0431c50c78fe0386b1 Mon Sep 17 00:00:00 2001 From: Piotr Kocia Date: Wed, 23 Jul 2025 06:55:40 +0200 Subject: [PATCH] fix selection not being updated on horizontal motions --- vimode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vimode.c b/vimode.c index c290ba41..b2e8f9da 100644 --- a/vimode.c +++ b/vimode.c @@ -1233,6 +1233,7 @@ static void execute_vimode_binding(struct seat *seat, struct terminal *term, damage_cursor_cell(term); term->vimode.cursor.col = 0; damage_cursor_cell(term); + update_selection(term); break; case BIND_ACTION_VIMODE_LINE_END: { @@ -1248,6 +1249,7 @@ static void execute_vimode_binding(struct seat *seat, struct terminal *term, } term->vimode.cursor.col = col; damage_cursor_cell(term); + update_selection(term); } break; case BIND_ACTION_VIMODE_TEXT_BEGIN: { @@ -1263,6 +1265,7 @@ static void execute_vimode_binding(struct seat *seat, struct terminal *term, } term->vimode.cursor.col = col; damage_cursor_cell(term); + update_selection(term); } break; case BIND_ACTION_VIMODE_WORD_BEGIN: