From 81c2e4ceed1da913d6137f7d3fd8af1ddf9faedc Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Sun, 5 Apr 2026 10:22:09 +0300 Subject: Fix cursor location text position in anim() --- path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'path.c') diff --git a/path.c b/path.c index 2b07c55..8145c01 100644 --- a/path.c +++ b/path.c @@ -18,7 +18,7 @@ int anim(Map map, size_t width, size_t height, Position start, Position end, Pos static char automatic = 0; while (1) { draw_map(map, width, height, start, end, cur, NULL, visited, frontier); - mvprintw(height+2 + map_offset_y, map_offset_x, "cur: %zu %zu", cur->x, cur->y); + mvprintw(height+2 + map_offset_y - 1, map_offset_x - 2, "cur: %zu %zu", cur->x, cur->y); if (automatic) { usleep(ANIM_DELAY_USEC); return 0; } switch (getch()) { case 'h': map_offset_x -= 2; break; -- cgit v1.2.3