Fixed a potential infinite loop. First delete any chars after the
authorEric Andersen <andersen@codepoet.org>
Tue, 4 Jul 2000 06:22:18 +0000 (06:22 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 4 Jul 2000 06:22:18 +0000 (06:22 -0000)
commit72965e3454ae254455c6d6ce69cf0d5af62dc2db
treefee30ee9bd09708b3a84e525d9c2ed144f51c7df
parentb54833cde0dfde26ad7c2d3a6cda9d7ff2dfe9ba
Fixed a potential infinite loop.  First delete any chars after the
cursor, then delete everything before it.  Before this, we would just
delete everything before the cursor and freak out if there were still
chars left (i.e. stuff after the cursor).
 -Erik
cmdedit.c
shell/cmdedit.c