view src/testdir/test_options.in @ 8861:45fe799c9672 v7.4.1718

commit https://github.com/vim/vim/commit/d56374e25df0b317b01423a01f158157faa647fa Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 7 22:16:30 2016 +0200 patch 7.4.1718 Problem: Coverity: not using return value of set_ref_in_item(). Solution: Use the return value.
author Christian Brabandt <cb@256bit.org>
date Thu, 07 Apr 2016 22:30:05 +0200
parents 55c67e16e4fd
children
line wrap: on
line source

Test for ":options".

STARTTEST
:so small.vim
:let caught = 'ok'
:try
  :options
:catch 
  :let caught = v:throwpoint . "\n" . v:exception
:endtry
:buf 1
:$put =caught
:"
:" Test that changing 'path' keeps two commas.
:set path=foo,,bar
:set path-=bar
:set path+=bar
:$put =&path
:/^result/,$w! test.out
:qa!
ENDTEST

result