nano

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

commit c88a2fd9caa6306837dbd874cfac1fdb69352709
parent b9de5525c4f61ed10af9c0552c4562c41c695f47
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 22 Mar 2018 15:20:05 +0100

tweaks: elide an unneeded and shadowing variable

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

diff --git 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 -