eliminate coredump for readline(NULL) case

This commit is contained in:
adam 1995-05-22 13:32:29 +00:00
parent 883e5b1335
commit f577ab6047

View File

@ -746,7 +746,7 @@ update_line (old, new, current_line, omax, nmax, inv_botlin)
escape sequences (like drawing the `unbold' sequence without a
corresponding `bold') that manifests itself on certain terminals. */
lendiff = strlen (local_prompt);
lendiff = local_prompt ? strlen (local_prompt) : 0;
if (current_line == 0 && !_rl_horizontal_scroll_mode &&
lendiff > visible_length &&
_rl_last_c_pos > 0 && (ofd - old) >= lendiff && term_cr)