Hi, I found a inconsistent behavior. Original text:
1 foo 2 foo 3 foo Put cursor at line 3, then `:call setline(1, 'bar')` text become: 1 bar 2 foo 3 foo Then press 'u' to undo 'bar' to 'foo'. 1) There will be a jump to line 1 (the first line in changed lines) 2) However, if we called `:call setline(2, 'bar')` in previous step, no jump will be added. About the automatically added jump: It' reasonable when undoing a single change. But if we do many changes at one function, one undo block, we might want to keep the cursor unchanged after undo. My suggestion is when undoing a change, if it contains multi-line changes, don't add a jump. -- 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
