if(matcher.regexp_error) {
addstr("[regexp error]");
- } else {
-
+ } else if(nb_lines > 0) {
int new_line;
if(match(lines[*current_line], &matcher)) {
new_line = *current_line;
if(nb_printed_lines == 0) {
addnstr("[no selection]\n", console_width);
}
+ } else {
+ addnstr("[empty choice]\n", console_width);
}
// Draw the modeline