Commit 206d89b7 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: revert commit c88a2fd9 -- the extra variable is needed

This variable will be modified by go_forward_chunks(), but the value
of openfile->current itself should be maintained.
parent eff2e0e2
Showing with 2 additions and 1 deletion
+2 -1
......@@ -840,10 +840,11 @@ void do_gotolinecolumn(ssize_t line, ssize_t column, bool use_answer,
#ifndef NANO_TINY
if (ISSET(SOFTWRAP)) {
filestruct *currentline = openfile->current;
size_t leftedge = leftedge_for(xplustabs(), openfile->current);
rows_from_tail = (editwinrows / 2) - go_forward_chunks(
editwinrows / 2, &openfile->current, &leftedge);
editwinrows / 2, &currentline, &leftedge);
} else
#endif
rows_from_tail = openfile->filebot->lineno -
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment