eliminate coredump for readline(NULL) case
This commit is contained in:
parent
883e5b1335
commit
f577ab6047
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user