eliminate coredump for readline(NULL) case

This commit is contained in:
Adam David 1995-05-22 13:32:29 +00:00
parent 87c15d9649
commit e43fc3243b
1 changed files with 1 additions and 1 deletions

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)