view src/testdir/test_set.vim @ 15703:b8a2362073bb v8.1.0859

patch 8.1.0859: "%v" in 'errorformat' does handle multi-byte characters commit https://github.com/vim/vim/commit/c45eb770a5988734ff2c572e5e2ce307158c33c8 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 31 14:27:04 2019 +0100 patch 8.1.0859: "%v" in 'errorformat' does handle multi-byte characters Problem: "%v" in 'errorformat' does handle multi-byte characters. Solution: Handle multi-byte characters. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/3700)
author Bram Moolenaar <Bram@vim.org>
date Thu, 31 Jan 2019 14:30:07 +0100
parents 779a7c14c795
children 08940efa6b4e
line wrap: on
line source

" Tests for the :set command

function Test_set_backslash()
  let isk_save = &isk

  set isk=a,b,c
  set isk+=d
  call assert_equal('a,b,c,d', &isk)
  set isk+=\\,e
  call assert_equal('a,b,c,d,\,e', &isk)
  set isk-=e
  call assert_equal('a,b,c,d,\', &isk)
  set isk-=\\
  call assert_equal('a,b,c,d', &isk)

  let &isk = isk_save
endfunction

function Test_set_add()
  let wig_save = &wig

  set wildignore=*.png,
  set wildignore+=*.jpg
  call assert_equal('*.png,*.jpg', &wig)

  let &wig = wig_save
endfunction