Mercurial > vim
comparison src/testdir/test_functions.vim @ 17871:521ce0d887e5 v8.1.1932
patch 8.1.1932: ml_get errors after using append()
Commit: https://github.com/vim/vim/commit/d20070274c47668560e02db184e1f8e456c3c326
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 27 21:56:06 2019 +0200
patch 8.1.1932: ml_get errors after using append()
Problem: Ml_get errors after using append(). (Alex Genco)
Solution: Do not update the cursor twice. (closes https://github.com/vim/vim/issues/1737)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 27 Aug 2019 22:00:04 +0200 |
parents | 73ddc462979d |
children | af3d441845cd |
comparison
equal
deleted
inserted
replaced
17870:ff2ef3e73a19 | 17871:521ce0d887e5 |
---|---|
703 bwipe! | 703 bwipe! |
704 iunmap <F2> | 704 iunmap <F2> |
705 set complete& | 705 set complete& |
706 endfunc | 706 endfunc |
707 | 707 |
708 func Test_append() | |
709 enew! | |
710 split | |
711 call append(0, ["foo"]) | |
712 split | |
713 only | |
714 undo | |
715 endfunc | |
716 | |
708 func Test_getbufvar() | 717 func Test_getbufvar() |
709 let bnr = bufnr('%') | 718 let bnr = bufnr('%') |
710 let b:var_num = '1234' | 719 let b:var_num = '1234' |
711 let def_num = '5678' | 720 let def_num = '5678' |
712 call assert_equal('1234', getbufvar(bnr, 'var_num')) | 721 call assert_equal('1234', getbufvar(bnr, 'var_num')) |