comparison 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
comparison
equal deleted inserted replaced
14484:c7016941d02a 14485:c71d65c3672f
1327 autocmd TextChangedI <buffer> call SetLineOne() 1327 autocmd TextChangedI <buffer> call SetLineOne()
1328 call feedkeys("i(\<CR>\<Esc>", 'tx') 1328 call feedkeys("i(\<CR>\<Esc>", 'tx')
1329 call assert_equal('(', getline(1)) 1329 call assert_equal('(', getline(1))
1330 call assert_equal('x)', getline(2)) 1330 call assert_equal('x)', getline(2))
1331 undo 1331 undo
1332 call assert_equal('(', getline(1)) 1332 call assert_equal('', getline(1))
1333 call assert_equal('', getline(2)) 1333 call assert_equal('', getline(2))
1334 undo
1335 call assert_equal('', getline(1))
1336 1334
1337 call test_override('starting', 0) 1335 call test_override('starting', 0)
1338 bwipe! 1336 bwipe!
1339 endfunc 1337 endfunc
1340 1338