view src/testdir/test_set.vim @ 24242:d3cabf12c991 v8.2.2662

patch 8.2.2662: there is no way to avoid some escape sequences Commit: https://github.com/vim/vim/commit/7007e31bde75b6360a1b54c7572e4f855458f37d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 27 12:11:33 2021 +0100 patch 8.2.2662: there is no way to avoid some escape sequences Problem: There is no way to avoid some escape sequences. Solution: Suppress escape sequences when the --not-a-term argument is used. (Gary Johnson)
author Bram Moolenaar <Bram@vim.org>
date Sat, 27 Mar 2021 12:15:04 +0100
parents 08940efa6b4e
children dd98794f7d8c
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

" vim: shiftwidth=2 sts=2 expandtab