mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-28 01:40:17 -05:00
initial vimode implementation
This commit is contained in:
parent
be19ca2b20
commit
e2c4ea3535
17 changed files with 1579 additions and 318 deletions
2
grid.c
2
grid.c
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue