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

This fixes https://savannah.gnu.org/bugs/?52717.
master
Benno Schulenberg 2017-12-22 23:00:32 +01:00
parent fb85c05594
commit ee5b250b66
1 changed files with 1 additions and 1 deletions

View File

@ -540,7 +540,7 @@ void get_region(const filestruct **top, const filestruct **bot)
mark_order(top, &top_x, bot, &bot_x, NULL); mark_order(top, &top_x, bot, &bot_x, NULL);
if (bot_x == 0) if (bot_x == 0 && *bot != *top)
*bot = (*bot)->prev; *bot = (*bot)->prev;
} }