view src/testdir/test_set.vim @ 18900:a9c47c623f4a v8.2.0011

patch 8.2.0011: screen updating wrong when opeing preview window Commit: https://github.com/vim/vim/commit/5e5a98d7de41457fabad4eb5af3d54cc93f05d0a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 15 14:55:33 2019 +0100 patch 8.2.0011: screen updating wrong when opeing preview window Problem: Screen updating wrong when opeing preview window. Solution: Redraw the window when the preview window opens.
author Bram Moolenaar <Bram@vim.org>
date Sun, 15 Dec 2019 15:00:04 +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