Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 324 by [email protected]: Undo can leave buffer in a never before
seen state after a multi-line edit.
https://code.google.com/p/vim/issues/detail?id=324
What steps will reproduce the problem?
While somewhat elaborate, this should produce it every time.
(You need to set nocompatible and backspace=2 to edit text like this in
insert mode. This is the default for the Arch Linux package.)
Open new buffer, insert two rows:
foo bar
bar foo
Enter insert mode on the first row with the cursor over 'b'.
1) use backspace to delete a character
2) use arrow keys to move one down, and three to the left
3) press backspace three times
The buffer sould now look like this:
foobbar foo
Leave insert mode and press u once.
What is the expected output? What do you see instead?
Expected buffer contents:
foo bar
bar foo
Buffer contents instead:
foobbar foo
bar foo
This is not a state the buffer has, from the perspective of the user, ever
been in during editing. It looks like an internal meta-state where the
lines have been concatenated, but the original line has not yet been
deleted.
What version of the product are you using? On what operating system?
vim 7.4.580 from Arch Linux package gvim (for x clipboard support).
Please provide any additional information below.
The bug is introduced by Changeset 5852 (v. 7.4.269)
Please note that the reproduction instructions have some unnecessary steps.
For example, the problem can be reproduced by just pressing backspace once
in step 3 to concatenate the lines.
However, some similar sequences that do not produce the problem:
- Following instructions without step 1.
- Following instructions, but substituting any left arrow key press with a
backspace during step 2.
- Using the Delete key at the end of the first row to combine the rows
instead of using backspace at the beginning of the second.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.