Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 56 by [email protected]: Pressing <C-R> continuously to redo
changes inserts <12> character after a few redo
http://code.google.com/p/vim/issues/detail?id=56
What steps will reproduce the problem?
======================================
1. Open a file with many changes (I use persistent undo so I have files
with thousands of changes for more than a year ago)
2. In normal mode, press the the 'u' key _continuously_ (for several
second, say 10 seconds). This performs undo of many changes, hundreds of
them or so for example.
3. Now keep pressing the <C-R> _continuously_ for several seconds to redo
those change.
What is the expected output?
============================
I would expect that pressing <C-R> should redo all the changes to go back
to the most recent change in the undo active branch.
What do you see instead?
========================
Instead, pressing <C-R> continuously only redo a few changes, and then
after a few seconds, it inserts the <12> character (i.e. ^R) in the file,
creating a new branch in the undo tree. It does not redo till the most
recent change in the undo tree.
It's reproducible all the time, but how long it takes to happens is
variable: sometimes it happens after pressing <C-R> for just 2 seconds,
sometimes I need to press <C-R> for 8 second, sometimes 5 seconds...
What version of the product are you using? On what operating system?
====================================================================
I'm using Vim-7.3.470 in GNOME terminal on Linux x86.
Additional remarks
==================
Instead of pressing 'u' and <C-R> on the keyboard continuously, I also
tried to reproduce it with...
:call feedkeys(repeat('u', 1000), 'n')
:call feedkeys(repeat("\<C-R>", 500), 'n')
But when doing this, it works fine all the time (even though it should be
equivalent I think).
It's reproducible with the minimalistic .vimrc:
set nocompatible
set undolevels=4000
set undodir=~/UNDODIR
set undofile
--
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