mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-26 06:39:43 +03:00
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.
This commit is contained in:
parent
eff2e0e291
commit
206d89b739
@ -840,10 +840,11 @@ 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 *currentline = openfile->current;
|
||||||
size_t leftedge = leftedge_for(xplustabs(), openfile->current);
|
size_t leftedge = leftedge_for(xplustabs(), openfile->current);
|
||||||
|
|
||||||
rows_from_tail = (editwinrows / 2) - go_forward_chunks(
|
rows_from_tail = (editwinrows / 2) - go_forward_chunks(
|
||||||
editwinrows / 2, &openfile->current, &leftedge);
|
editwinrows / 2, ¤tline, &leftedge);
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
rows_from_tail = openfile->filebot->lineno -
|
rows_from_tail = openfile->filebot->lineno -
|
||||||
|
Loading…
Reference in New Issue
Block a user