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

This fixes https://savannah.gnu.org/bugs/?52717.
This commit is contained in:
Benno Schulenberg 2017-12-22 23:00:32 +01:00
parent fb85c05594
commit ee5b250b66

View File

@ -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;
}