nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 206d89b73991ef74f673e7f16619fb0d271f1f84
parent eff2e0e291b7441d96aa3f80a27574528fb65c95
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 23 Mar 2018 11:31:08 +0100

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.

Diffstat:
Msrc/search.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/search.c b/src/search.c @@ -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 -