Skip to content

Commit 26e0ecb

Browse files
committed
Add exclusions for pt
Add the exclusions_pt test back in
1 parent eea9186 commit 26e0ecb

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

plugin/EasyGrep.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2418,7 +2418,7 @@ function! s:ConfigureGrepCommandParameters()
24182418
\ 'opt_str_wholewordoption': '-w ',
24192419
\ 'req_str_escapespecialcharacters': "-\^$#.*+?()[]{}",
24202420
\ 'opt_str_escapespecialcharacterstwice': "|",
2421-
\ 'opt_str_mapexclusionsexpression': '"--ignore-dir=\"".v:val."\""',
2421+
\ 'opt_str_mapexclusionsexpression': '"--ignore=\"".v:val."\""',
24222422
\ 'opt_bool_filtertargetswithnofiles': '0',
24232423
\ 'opt_bool_bufferdirsearchallowed': '1',
24242424
\ 'opt_str_suppresserrormessages': '',
@@ -2443,7 +2443,7 @@ function! s:ConfigureGrepCommandParameters()
24432443
\ 'opt_str_wholewordoption': '-w ',
24442444
\ 'req_str_escapespecialcharacters': "-\^$#.*+?()[]{}",
24452445
\ 'opt_str_escapespecialcharacterstwice': "",
2446-
\ 'opt_str_mapexclusionsexpression': '',
2446+
\ 'opt_str_mapexclusionsexpression': '"--ignore=\"".v:val."\""',
24472447
\ 'opt_bool_filtertargetswithnofiles': '0',
24482448
\ 'opt_bool_bufferdirsearchallowed': '1',
24492449
\ 'opt_str_suppresserrormessages': '',

tests/exclusions_pt.ok

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
allext\alphabet.a|1 col 1| GrepAdd a (exclude b c)
2+
allext\alphabet.a|1 col 0| a
3+
allext\alphabet.a|1 col 1| GrepAdd A (exclude b c)
4+
allext\alphabet.a|27 col 0| A
5+
allext\alphabet.a|1 col 1| GrepAdd b (exclude a c)
6+
allext\alphabet.b|2 col 0| b
7+
allext\alphabet.a|1 col 1| GrepAdd B (exclude a c)
8+
allext\alphabet.b|28 col 0| B
9+
allext\alphabet.a|1 col 1| GrepAdd c (exclude a b)
10+
allext\alphabet.c|3 col 0| c
11+
allext\alphabet.a|1 col 1| GrepAdd C (exclude a b)
12+
allext\alphabet.c|29 col 0| C

tests/vimgrep.suite

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ wholeword_vimgrep.vim
2121
exclusions_ack.vim
2222
exclusions_ag.vim
2323
exclusions_grep.vim
24-
# exclusions_pt.vim # not yet supported
24+
exclusions_pt.vim
2525
exclusions_vimgrep.vim
2626

2727
# recursion

0 commit comments

Comments
 (0)