On Tue, Dec 04, 2001 at 04:20:03PM +1100, Doug Kearns wrote:
> I've just noticed that if you are cycling through the command history
> and abort with a ^G, the next time you invoke the line editor you are
> placed at the point in history list at which you aborted.
> 
> example:
> 
> :command 1
> :command 2
> :command 3
> :command 4
> :command 5
> 
> cycle up the history to 'command 3', abort and invoke the line editor
> again. Hit the <Up> key and you are at 'command 2' which is not the last
> command you entered.
>
Well, in a sense you are at the last line you entered are you not ?
You "entered" it through cycling to it+1. You aborted the current action
which leaves the history pointer at current-action -1 .
 
It seems strange, but if you think about it then it is logical.

-- 
Regards
Cliff


Reply via email to