-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: When there is a backslash in an option ":set -=" doesn't work. Solution: Handle a backslash better. (Jacob Niehus) Add a new test, merge in old test.
- Loading branch information
Showing
8 changed files
with
40 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
" Tests for the :cdo, :cfdo, :ldo and :lfdo commands | ||
|
||
lang mess C | ||
if !has('quickfix') | ||
finish | ||
endif | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
" 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters