nano

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

commit ee5b250b6618dcedc463c5b882e26f2027789a9b
parent fb85c0559486db53b45c9ea47e18e49eddf6fdbe
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 22 Dec 2017 23:00:32 +0100

indenting: don't exclude last line of region when region is empty

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

Diffstat:
Msrc/utils.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/utils.c b/src/utils.c @@ -540,7 +540,7 @@ void get_region(const filestruct **top, const filestruct **bot) mark_order(top, &top_x, bot, &bot_x, NULL); - if (bot_x == 0) + if (bot_x == 0 && *bot != *top) *bot = (*bot)->prev; }