fix selection not being updated on horizontal motions

This commit is contained in:
Piotr Kocia 2025-07-23 06:55:40 +02:00
parent 6e38cb683a
commit a5cf270fdf

View file

@ -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: