initial vimode implementation

This commit is contained in:
Piotr Kocia 2025-03-20 17:25:37 +01:00
parent be19ca2b20
commit e2c4ea3535
17 changed files with 1579 additions and 318 deletions

2
grid.c
View file

@ -819,6 +819,7 @@ grid_resize_and_reflow(
size_t tracking_points_count,
struct coord *const _tracking_points[static tracking_points_count])
{
printf("GRID REFLOW\n");
#if defined(TIME_REFLOW) && TIME_REFLOW
struct timespec start;
clock_gettime(CLOCK_MONOTONIC, &start);
@ -859,6 +860,7 @@ grid_resize_and_reflow(
saved_cursor.row += grid->offset;
saved_cursor.row &= old_rows - 1;
// TODO (kociap): add the vimode cursor and selection start.
size_t tp_count =
tracking_points_count +
1 + /* cursor */