| Summary: | ddb doesn't understand ctrl-u | ||
|---|---|---|---|
| Product: | Base System | Reporter: | kolya <kolya> |
| Component: | kern | Assignee: | Yar Tikhiy <yar> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.3-STABLE | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->analyzed Committed to -current, will be in -stable in a week. Thanks! Responsible Changed From-To: freebsd-bugs->yar MFC reminder for me. State Changed From-To: analyzed->closed ^U recognized by ddb(4) in -current and -stable now, thanks! |
DDB doesn't understand ^U Fix: --- sys/ddb/db_input.c 2000/01/11 14:53:53 1.28 +++ sys/ddb/db_input.c 2001/07/14 22:25:11 @@ -199,6 +199,11 @@ if (db_lc < db_le) db_delete(db_le - db_lc, DEL_FWD); break; + case CTRL('u'): + /* delete backwards to the beginning of line */ + if (db_lc > db_lbuf_start) + db_delete(db_lc - db_lbuf_start, DEL_BWD); + break; case CTRL('t'): /* twiddle last 2 characters */ if (db_lc >= db_lbuf_start + 2) { How-To-Repeat: Escape into DDB, type in text, press ^U. Doesn't erase.