diff --git a/src/search.c b/src/search.c index 4dff2f57..cf7a19ef 100644 --- a/src/search.c +++ b/src/search.c @@ -840,11 +840,10 @@ void do_gotolinecolumn(ssize_t line, ssize_t column, bool use_answer, #ifndef NANO_TINY if (ISSET(SOFTWRAP)) { - filestruct *line = openfile->current; size_t leftedge = leftedge_for(xplustabs(), openfile->current); - rows_from_tail = (editwinrows / 2) - - go_forward_chunks(editwinrows / 2, &line, &leftedge); + rows_from_tail = (editwinrows / 2) - go_forward_chunks( + editwinrows / 2, &openfile->current, &leftedge); } else #endif rows_from_tail = openfile->filebot->lineno -