To: vim_dev@googlegroups.com Subject: Patch 9.0.0572 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.0572 Problem: Insert complete tests leave a mapping behind. Solution: Use a buffer-local mapping. (closes #11211) Files: src/testdir/test_ins_complete.vim *** ../vim-9.0.0571/src/testdir/test_ins_complete.vim 2022-09-24 11:17:48.373970710 +0100 --- src/testdir/test_ins_complete.vim 2022-09-24 14:06:48.396945358 +0100 *************** *** 701,708 **** " Test for using complete() with completeopt+=longest func Test_complete_with_longest() - inoremap call complete(1, ["iaax", "iaay", "iaaz"]) new " default: insert first match set completeopt& --- 701,708 ---- " Test for using complete() with completeopt+=longest func Test_complete_with_longest() new + inoremap call complete(1, ["iaax", "iaay", "iaaz"]) " default: insert first match set completeopt& *************** *** 716,721 **** --- 716,722 ---- exe "normal Aa\\" call assert_equal('iaa', getline(1)) set completeopt& + bwipe! endfunc *************** *** 1272,1278 **** " A mapping is not used for the key after CTRL-X. func Test_no_mapping_for_ctrl_x_key() new ! inoremap let was_mapped = 'yes' setlocal dictionary=README.txt call feedkeys("aexam\\ ", 'xt') call assert_equal('example ', getline(1)) --- 1273,1279 ---- " A mapping is not used for the key after CTRL-X. func Test_no_mapping_for_ctrl_x_key() new ! inoremap let was_mapped = 'yes' setlocal dictionary=README.txt call feedkeys("aexam\\ ", 'xt') call assert_equal('example ', getline(1)) *** ../vim-9.0.0571/src/version.c 2022-09-24 13:10:00.739938625 +0100 --- src/version.c 2022-09-24 14:06:38.856999233 +0100 *************** *** 701,702 **** --- 701,704 ---- { /* Add new patch number below this line */ + /**/ + 572, /**/ -- hundred-and-one symptoms of being an internet addict: 162. You go outside and look for a brightness knob to turn down the sun. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///