nano

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

commit 738487f13d89deb93aac825634a1f2e1fed04922
parent c8a9a965789d1c69fe1dce74cd03af3fd0723f83
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 28 May 2018 10:39:47 +0200

tweaks: make better use of an existing variable

Diffstat:
Msrc/text.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/text.c b/src/text.c @@ -1035,9 +1035,9 @@ void do_enter(void) #ifdef ENABLE_JUSTIFY /* If the next line is in this same paragraph, use its indentation * as the model, as it is more likely to be what the user wants. */ - if (openfile->current->next && inpar(openfile->current->next) && - !begpar(openfile->current->next, 0)) - sampleline = openfile->current->next; + if (sampleline->next && inpar(sampleline->next) && + !begpar(sampleline->next, 0)) + sampleline = sampleline->next; #endif extra = indent_length(sampleline->data);