Fix update_line() updates on screen edges

Obtained from: bash sources
This commit is contained in:
Andrey A. Chernov 1995-04-18 11:00:47 +00:00
parent f744a9768e
commit a989b77e9e

View File

@ -690,7 +690,7 @@ update_line (old, new, current_line, omax, nmax, inv_botlin)
putc (' ', rl_outstream);
_rl_last_c_pos = 1; /* XXX */
_rl_last_v_pos++;
if (old[0])
if (old[0] && new[0])
old[0] = new[0];
}