1
1

tweaks: add a warning for something that shouldn't occur

Этот коммит содержится в:
Benno Schulenberg 2019-04-30 09:44:47 +02:00
родитель 6319a86178
Коммит 542426f1f1

Просмотреть файл

@ -287,9 +287,10 @@ void extract_buffer(linestruct **buffer_top, linestruct **buffer_bot,
bool same_line = FALSE;
#endif
/* If the given coordinates don't cover any text, get out. */
if (top == bot && top_x == bot_x)
if (top == bot && top_x == bot_x) {
statusline(ALERT, "Extracting nothing -- please report a bug");
return;
}
/* Partition the buffer so that it contains only the text from
* (top, top_x) to (bot, bot_x), keep track of whether the top of