-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extra state created in vim undo tree if edit done with undotree window open #106
Comments
it looks really weird. since this plug-in never change the history, it only shows the history. So there really shouldn't be any difference in edit history when ut window is open or not. |
Thanks for checking. I've in the past consistently reproduced vim bugs in win64, except for gui-related stuff, so I stopped checking. I'll try to manage that today. In the meantime, I briefly checked the last released version of vim (8.1.1) instead of the nightly, and the bug is NOT there. Interesting. I will check the latest nightly today as well. |
Ok, I checked and the problem is still there on the latest nightly (1933) for my old winxp-32: |
Ok, I went back and checked old builds (winxp-32) after the 8.1.1 release until I found the first failing one, #0258 (dated Aug 8, 2018): |
yeah, undotree do need |
I also experience the problem on Windows 10, Neovim 0.5. |
Hi, just something weird I noticed. Seems like a bug, unless you aren't supposed to edit with the undotree (ut) window open:
Test case:
Start with a new buffer (the edit window)
:UndotreeShow to show the ut window
Back in the edit window, insert a string, say ‘aa’, and hit Esc
Watch in the ut window as two states are added to the vim undo tree, the expected one, then an extra empty state (no change) after it. Now you have to hit undo twice to undo the single change. If you were to do the same edit without the ut window open, there would only be one state added. That's the first problem.
Now if you hit 'u' to undo, nothing happens in the edit or ut windows, it's like they're frozen, until you move the cursor, after which everything happens at once. You would expect the ut window to show a change in the current state (the >< marker), and the edit window to show a change in the signs column, both of which do not happen until you move cursor (say with ‘h’). That's the second problem.
I tested this on the 32-bit vim (windows xp), on a clean vim (blank _vimrc, no other plugins), on vim 8.1.1605 (recent nightly version), and on the latest undotree.vim here, dated 03/13/19, as well as releases 6.0 and 5.0
The text was updated successfully, but these errors were encountered: