From fb401729bcff8177be5a7872e44e9e5bfbd7ac02 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Sun, 9 Mar 2008 14:49:39 +0000 Subject: Merge db_input.c:1.38 from HEAD to RELENG_7: When redrawing an input line, count backspaces to get to the beginning of the input field from the current cursor location, rather than the end of the input line, as the cursor may not be at the end of the line. Otherwise, we may overshoot, overwriting a bit of the previous line and failing to fully overwrite the current line. PR: 119079 Submitted by: Michael Plass --- sys/ddb/db_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/ddb/db_input.c b/sys/ddb/db_input.c index 27af2655c19b..4559122f7ef0 100644 --- a/sys/ddb/db_input.c +++ b/sys/ddb/db_input.c @@ -250,7 +250,7 @@ db_inputchar(c) } hist_redraw: - db_putnchars(BACKUP, db_le - db_lbuf_start); + db_putnchars(BACKUP, db_lc - db_lbuf_start); db_putnchars(BLANK, db_le - db_lbuf_start); db_putnchars(BACKUP, db_le - db_lbuf_start); db_le = index(db_lbuf_start, '\0'); -- cgit v1.3