tweaks: elide an unneeded and shadowing variable

master
Benno Schulenberg 2018-03-22 15:20:05 +01:00
parent b9de5525c4
commit c88a2fd9ca
1 changed files with 2 additions and 3 deletions

View File

@ -840,11 +840,10 @@ void do_gotolinecolumn(ssize_t line, ssize_t column, bool use_answer,
#ifndef NANO_TINY #ifndef NANO_TINY
if (ISSET(SOFTWRAP)) { if (ISSET(SOFTWRAP)) {
filestruct *line = openfile->current;
size_t leftedge = leftedge_for(xplustabs(), openfile->current); size_t leftedge = leftedge_for(xplustabs(), openfile->current);
rows_from_tail = (editwinrows / 2) - rows_from_tail = (editwinrows / 2) - go_forward_chunks(
go_forward_chunks(editwinrows / 2, &line, &leftedge); editwinrows / 2, &openfile->current, &leftedge);
} else } else
#endif #endif
rows_from_tail = openfile->filebot->lineno - rows_from_tail = openfile->filebot->lineno -