console: KillLastWord broken
|Reported by:||wjp||Owned by:||fingolfin|
KillLastWord corrupts the prompt structure, because it
can put _currentPos behind _promptEndPos. (it decreases
_currentPos by cnt, and decreases _promptEndPos by cnt+1)
The attached patch seems to fix things.
Ticket imported from: #731615. Ticket imported from: patches/317.