On 4/27/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: >[...] > > This looks like a bug... Well, here you can see how adding something > without know exactly what happens messes up things. feedkeys() sets the > typebuf_was_filled flag and that causes the loop. I'll change that. > Hopefully this will work: > > --- eval.c 27 Apr 2006 00:02:04 -0000 1.170 > +++ eval.c 27 Apr 2006 09:58:48 -0000 > @@ -9029,7 +9029,8 @@ > ins_typebuf(keys_esc, (remap ? REMAP_YES : REMAP_NONE), > typebuf.tb_len, !typed, FALSE); > vim_free(keys_esc); > - typebuf_was_filled = TRUE; > + if (vgetc_busy) > + typebuf_was_filled = TRUE; > } > } > } >
I don't have a compile environment. Do you think this will fix the problem where feedkeys() causes getchar() to work improperly (forever returning the same key)?
