mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-25 22:29:42 +03:00
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:
parent
fb85c05594
commit
ee5b250b66
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user