Mercurial > vim
comparison src/testdir/test_options.vim @ 9852:4eea48b76d03 v7.4.2201
commit https://github.com/vim/vim/commit/95ec9d6a6ab3117d60ff638670a803d43974ba51
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 12 18:29:59 2016 +0200
patch 7.4.2201
Problem: The sign column disappears when the last sign is deleted.
Solution: Add the 'signcolumn' option. (Christian Brabandt)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 12 Aug 2016 18:45:06 +0200 |
parents | e34e4547f3d1 |
children | 12c5c2614432 |
comparison
equal
deleted
inserted
replaced
9851:eafd017d8a5a | 9852:4eea48b76d03 |
---|---|
14 call assert_equal('b,s,h,l', &whichwrap) | 14 call assert_equal('b,s,h,l', &whichwrap) |
15 | 15 |
16 set whichwrap& | 16 set whichwrap& |
17 endfunction | 17 endfunction |
18 | 18 |
19 function! Test_options() | 19 function Test_options() |
20 let caught = 'ok' | 20 let caught = 'ok' |
21 try | 21 try |
22 options | 22 options |
23 catch | 23 catch |
24 let caught = v:throwpoint . "\n" . v:exception | 24 let caught = v:throwpoint . "\n" . v:exception |
27 | 27 |
28 " close option-window | 28 " close option-window |
29 close | 29 close |
30 endfunction | 30 endfunction |
31 | 31 |
32 function! Test_path_keep_commas() | 32 function Test_path_keep_commas() |
33 " Test that changing 'path' keeps two commas. | 33 " Test that changing 'path' keeps two commas. |
34 set path=foo,,bar | 34 set path=foo,,bar |
35 set path-=bar | 35 set path-=bar |
36 set path+=bar | 36 set path+=bar |
37 call assert_equal('foo,,bar', &path) | 37 call assert_equal('foo,,bar', &path) |
38 | 38 |
39 set path& | 39 set path& |
40 endfunction | 40 endfunction |
41 | |
42 func Test_signcolumn() | |
43 call assert_equal("auto", &signcolumn) | |
44 set signcolumn=yes | |
45 set signcolumn=no | |
46 call assert_fails('set signcolumn=nope') | |
47 endfunc | |
48 |