Yasuhiro Matsumoto wrote:

> I got a bug report about behavior of "." register in compatible mode. When 
> typed commands fail with "an Empty region", original behavior is that don't 
> store
> last commands to "." register.
> 
> For example:
> 
> vim -u NONE
> :set cpoptions+=E
> afoo<ESC>0c0
> 
> You will get beep. This mean "an Empty region". If you type ".", you'll get 
> an error again. But traditional vi's behavior is repeat of append "foo". 
> Then text should be:
> 
> ffoooo
> 
> Another example:
> 
> vim -u NONE
> :set cpoptions+=E
> ahoge<ESC>c0:q!<CR><ESC>
> 
> Text will be:
> 
> q!
> e
> 
> Then, type "."
> 
> Original vi's behavior will not do anything. But vim will exit. This cause 
> that vim don't clear "." register when error occur.
> 
> Below is a patch. Please check and include. This patch is written by Hideki 
> EIRAKU.

Thanks, I'll add it to the todo list.

Your patches often have indent removed.  Would there be a way to avoid
that?

-- 
hundred-and-one symptoms of being an internet addict:
3. Your bookmark takes 15 minutes to scroll from top to bottom.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui