Christian Brabandt wrote:

> On Mi, 20 Jun 2012, Raymond Ko wrote:
> 
> > This patch breaks the dot register for my autocompletion plugin when
> > 'refresh: always' is NOT set. Once the popup menu shows up, any
> > following character is appended twice to the dot register. Although I
> > can work around it by setting 'refresh: always' (my plugin is not
> > dependent on this), I'm sure there is an underlying bug with the code.
> > 
> > Attached is a minimal test case based off of my plugin to reproduce
> > the bug. My results are marked on the comments of the return clause
> > inside the completion function. It is also available on:
> > 
> > https://gist.github.com/2960778
> > 
> > Steps to reproduce: 1. Run "C:\Program Files (x86)\Vim\vim73\gvim.exe"
> > -u NONE -i NONE 2. :source test.vim 3. Enter insert mode 4. Type test
> > 5. <ESC> 6. :reg(.)
> > 
> > My original plugin is at:
> > https://github.com/raymond-w-ko/omegacomplete.vim for any interested
> > as to why I am doing this. Note that it is still a work in progress.
> 
> 
> So only add to the redo buffer, when refresh:always is set, right?

It would be good to know why this flag needs to be checked.  Add a
comment to explain.  Insert mode completion has grown too complex...

-- 
hundred-and-one symptoms of being an internet addict:
49. You never have to deal with busy signals when calling your ISP...because
    you never log off.

 /// 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