Mercurial > vim
annotate src/testdir/test_options.in @ 7212:55c67e16e4fd v7.4.915
commit https://github.com/vim/vim/commit/174674743d9a2d7361c9cd89836f8dd8651edeeb
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 10 17:50:24 2015 +0100
patch 7.4.915
Problem: When removing from 'path' and then adding, a comma may go missing.
(Malcolm Rowe)
Solution: Fix the check for P_ONECOMMA. (closes #471)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 10 Nov 2015 18:00:05 +0100 |
parents | 0a295a3c9e47 |
children |
rev | line source |
---|---|
5774 | 1 Test for ":options". |
2 | |
3 STARTTEST | |
4 :so small.vim | |
5 :let caught = 'ok' | |
6 :try | |
7 :options | |
8 :catch | |
9 :let caught = v:throwpoint . "\n" . v:exception | |
10 :endtry | |
11 :buf 1 | |
12 :$put =caught | |
7212
55c67e16e4fd
commit https://github.com/vim/vim/commit/174674743d9a2d7361c9cd89836f8dd8651edeeb
Christian Brabandt <cb@256bit.org>
parents:
5774
diff
changeset
|
13 :" |
55c67e16e4fd
commit https://github.com/vim/vim/commit/174674743d9a2d7361c9cd89836f8dd8651edeeb
Christian Brabandt <cb@256bit.org>
parents:
5774
diff
changeset
|
14 :" Test that changing 'path' keeps two commas. |
55c67e16e4fd
commit https://github.com/vim/vim/commit/174674743d9a2d7361c9cd89836f8dd8651edeeb
Christian Brabandt <cb@256bit.org>
parents:
5774
diff
changeset
|
15 :set path=foo,,bar |
55c67e16e4fd
commit https://github.com/vim/vim/commit/174674743d9a2d7361c9cd89836f8dd8651edeeb
Christian Brabandt <cb@256bit.org>
parents:
5774
diff
changeset
|
16 :set path-=bar |
55c67e16e4fd
commit https://github.com/vim/vim/commit/174674743d9a2d7361c9cd89836f8dd8651edeeb
Christian Brabandt <cb@256bit.org>
parents:
5774
diff
changeset
|
17 :set path+=bar |
55c67e16e4fd
commit https://github.com/vim/vim/commit/174674743d9a2d7361c9cd89836f8dd8651edeeb
Christian Brabandt <cb@256bit.org>
parents:
5774
diff
changeset
|
18 :$put =&path |
5774 | 19 :/^result/,$w! test.out |
20 :qa! | |
21 ENDTEST | |
22 | |
23 result |