]> granicus.if.org Git - vim/commit
patch 9.0.1036: undo misbehaves when writing from an insert mode mapping v9.0.1036
authorBram Moolenaar <Bram@vim.org>
Thu, 8 Dec 2022 21:49:35 +0000 (21:49 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 8 Dec 2022 21:49:35 +0000 (21:49 +0000)
commit3f8f82772313af9f2417b06651f30988b63e1c96
treebcb39bcc4421135334decdea16a3dc176c6afe94
parentd28d7b94f5a76a817585c115dbf6fecac9b0b4cd
patch 9.0.1036: undo misbehaves when writing from an insert mode mapping

Problem:    Undo misbehaves when writing from an insert mode mapping.
Solution:   Sync undo when writing. (closes #11674)
src/edit.c
src/testdir/dumps/Test_undo_after_write_1.dump [new file with mode: 0644]
src/testdir/dumps/Test_undo_after_write_2.dump [new file with mode: 0644]
src/testdir/dumps/Test_undo_after_write_2.vim [new file with mode: 0644]
src/testdir/test_undo.vim
src/version.c