Commit ee5b250b authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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

This fixes https://savannah.gnu.org/bugs/?52717.
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment