Andrei Voropaev wrote:

> On Fri, Apr 27, 2007 at 01:17:39PM +0200, A.J.Mechelynck wrote:
> [...]
> > >Aha, I think, that here we talk about a bug!  If I hit Ctrl-N, get the
> > >needed completion, and then start typing further, then the completion
> > >stops as soon as there are no more matches.  BUT. If after Ctrl-N I hit
> > >Backspace first, and then continue typing, then completion does not stop
> > >even when there are no more matches. In this case only Esc or Ctrl-Y
> > >aborts the completion.
> > >
> > 
> > Ah, finally, I can reproduce that. I think it's only a missing screen 
> > redraw. If I backspace, then type a few letters, then (let's say) a period, 
> > the message "match m of n" is still there. Hitting <Left> makes it 
> > disappear (replaced by "-- INSERT --"), after which <Right> brings the 
> > cursor back where it belongs.
> 
> Unfortunately it's not just a missing screen. If you try to do
> completion again it won't work. So again, type the beginning of word,
> hit Ctrl-N, hit Backspace, type ( and beginning of another word, hit
> Ctrl-N to complete it. It won't work saying that there are no matches.
> That's because old completion is still active and it tries to complete
> the whole thing. This happens very often when one has to write C
> functions :) So, I would say this is a more serious bug than just
> missing update of the screen.

When you press Backspace you go into a mode where you edit the text, so
that you can change the list of matches.  Just about any character can
appear in the matches (e.g., for line completion or when using omni
completion).  It's difficult to decide when to leave this editing mode.
Also because you can make a typo, and expect Backspace to correct that.
If the key exits completion mode you can't go back to what you were doing.

> Actually, I've hit another bug few times already, unfortunately I can't
> reproduce it. When I type quickly and miss a key, then I try to undo my
> changes and instead get back the message "Can't undo, the line numbers
> are incorrect" or something like that. Usually it happens after I hit
> 2-3 keys wrong, so I still can't reproduce it. Well, when I type
> japanese text in "over the spot" mode this is "normal". But everyone
> decided that this is a bug in the japanese input. Looks like it can be
> triggered also in non-japanes input.

If you find a way to reproduce this "undo line numbers wrong error" then
I would very much like to see it.  It's hard to fix something that I
can't reproduce.

-- 
How To Keep A Healthy Level Of Insanity:
5. Put decaf in the coffee maker for 3 weeks. Once everyone has gotten
   over their caffeine addictions, switch to expresso.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to