diff src/testdir/test_autocmd.vim @ 14485:c71d65c3672f v8.1.0256

patch 8.1.0256: using setline() in TextChangedI splits undo commit https://github.com/vim/vim/commit/9fa9506853516c82851baec643aa47458cb8b3bc Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 8 22:08:32 2018 +0200 patch 8.1.0256: using setline() in TextChangedI splits undo Problem: Using setline() in TextChangedI splits undo. Solution: Use another solution for undo not working properly.
author Christian Brabandt <cb@256bit.org>
date Wed, 08 Aug 2018 22:15:05 +0200
parents 3b87daa5c37a
children 90ab2d3ce11d
line wrap: on
line diff
--- a/src/testdir/test_autocmd.vim
+++ b/src/testdir/test_autocmd.vim
@@ -1329,10 +1329,8 @@ func Test_TextChangedI_with_setline()
   call assert_equal('(', getline(1))
   call assert_equal('x)', getline(2))
   undo
-  call assert_equal('(', getline(1))
+  call assert_equal('', getline(1))
   call assert_equal('', getline(2))
-  undo
-  call assert_equal('', getline(1))
 
   call test_override('starting', 0)
   bwipe!