On Nov 24, 6:41 pm, hsitz <[email protected]> wrote: on > > I assume I'm missing something simple about how undo is supposed to > work > between these two events, but I can't figure out what. Any hints > appreciated. >
I got things working but still not sure exactly what was wrong. Somehow the BufWritePre and BufWritePost autocommands were getting set twice and both sets of functions were called twice, with second undo adding and extra undo. I don't know how they were getting called twice, but clearing the the autocommands before assigning results in only one set. I'm also not sure why there was a problem even with two sets, since I made sure that at least one change was always made in BufWritePre, but in any case things are working now. . . -- You received this message from the "vim_use" 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
