diff --git a/src/winio.c b/src/winio.c index 526a4166483c8dd28ec7db9274ed8b7a54a3e57a..51b7033cedb93f8a2907e91e323e5f236666816e 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2284,6 +2284,7 @@ void reset_cursor(void) openfile->edittop->lineno; if (openfile->current_y < editwinrows) { size_t xpt = xplustabs(); + wmove(edit, openfile->current_y, xpt - get_page_start(xpt)); } }