Closed GoogleCodeExporter closed 9 years ago
Here is a simpler way to reproduce the bug:
1) start vim with: vim -u NONE
2) Enter following Ex command which creates 1000 edits and then it does undo of
all of them:
:set nocp undolevels=2000|call feedkeys('A'.repeat("*\<C-g>u",
1000)."\<Esc>1000u", 'n')
3) Then press <C-R> (keep pressing the key for several seconds). This should
redo all the changes one by one (displaying a bunch of * characters).
What I observe instead, is something like this when pressing <C-R>
*************************^R
I.e. the ^R character (<12>) is inserted after pressing <C-R> for several
seconds.
I also noticed that I could not reproduce it on a Linux x86_64 desktop but I
can reproduce it all the time on a Linux x86 laptop.
I then tried to reproduce it by starting Vim as follows to save all commands in
a file "save-cmds":
$ vim -u NONE -W save-cmds
Then I reproduced the bug with steps 2) and 3).
The created "save-cmds" file contains this:
:<80>ku:set nocp undolevels=2000|call feedkeys('A'.repeat("*\<C-g>u",
1000)."\<Esc>1000u",
'n')^M^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R
^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^Rr^R^R^RESC:qa!
Notice the 'r' command near the end of the file which should not be there! (it
should be ^R)
So I'm starting the think that the problem is with my keyboard. It behaves as
if I unpressed temporarily the control key while while pressing <C-R>
continuously (hence entering a r command in Vim which then inserts ^R instead
of doing undo).
Original comment by dominiqu...@gmail.com
on 8 Mar 2012 at 6:57
I cannot reproduce it.
Did you try using another terminal?
Original comment by br...@google.com
on 8 Mar 2012 at 9:09
> Did you try using another terminal?
I just tried. It happens in gnome-terminal and xterm.
It also happens in gvim (gtk2).
I then started the "gedit" text editor and pressed CTRL-R continuously,
I can see once in a while the r letter appearing every few seconds,
irregularly in gedit.
So it is not a bug in Vim after all but a problem with my keyboard most
certainly, which behaves as if CTRL key becomes unpressed for a short time.
There are 2 CTRL keys on the keyboard. The other CTRL key has the same problem
which I find puzzling.
Anyway, let's close this issue as not a bug in Vim.
Original comment by dominiqu...@gmail.com
on 8 Mar 2012 at 9:26
I like the conclusion of this bug!
Original comment by brammool...@gmail.com
on 9 Mar 2012 at 11:04
Original issue reported on code.google.com by
dominiqu...@gmail.com
on 7 Mar 2012 at 10:58