nano

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

commit b38cbfe17325976b5030effbb80c05ef9b222a9e
parent 702b09c85935e1d3328a7a9999c79c533b7987d3
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Mon, 24 Oct 2016 17:38:24 +0200

startup: always initialize 'margin' and 'editwincols'

This fixes https://savannah.gnu.org/bugs/?49428.

Diffstat:
Msrc/nano.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -2706,11 +2706,13 @@ int main(int argc, char **argv) /* The margin has changed -- schedule a full refresh. */ refresh_needed = TRUE; } - } else { + } else +#endif + { margin = 0; editwincols = COLS; } -#endif + if (currmenu != MMAIN) display_main_list();