diff --git a/src/utils.c b/src/utils.c index decad9e9..5a2fbaed 100644 --- 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; }