nano

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

commit 410280b0891b7ceaed3e2264cf09e40be458d240
parent 178dd9181f40f29e9ca4d86241dfce6eababafc4
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 22 Dec 2019 11:28:56 +0100

build: fix compilation when configured with --disable-justify

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

diff --git a/src/text.c b/src/text.c @@ -1405,10 +1405,14 @@ bool do_wrap(void) /* The line to be wrapped, if needed and possible. */ size_t line_len = strlen(line->data); /* The length of this line. */ +#ifdef ENABLE_JUSTIFY size_t quot_len = quote_length(line->data); /* The length of the quoting part of this line. */ size_t lead_len = quot_len + indent_length(line->data + quot_len); /* The length of the quoting part plus subsequent whitespace. */ +#else + size_t lead_len = indent_length(line->data); +#endif size_t cursor_x = openfile->current_x; /* The current cursor position, for comparison with the wrap point. */ ssize_t wrap_loc;