Mercurial > vim
comparison src/tag.c @ 9913:bb00c661b3a4 v7.4.2230
commit https://github.com/vim/vim/commit/66e29d7112e437b2b50efe1f82c7e892736d23e4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 20 16:57:02 2016 +0200
patch 7.4.2230
Problem: There is no equivalent of 'smartcase' for a tag search.
Solution: Add value "followscs" and "smart" to 'tagcase'. (Christian
Brabandt, closes https://github.com/vim/vim/issues/712) Turn tagcase test into new style.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 20 Aug 2016 17:00:07 +0200 |
parents | 67781bb0a61a |
children | 30be4b26a37e |
comparison
equal
deleted
inserted
replaced
9912:4c5014d76564 | 9913:bb00c661b3a4 |
---|---|
1383 * Change the value of 'ignorecase' according to 'tagcase' for the | 1383 * Change the value of 'ignorecase' according to 'tagcase' for the |
1384 * duration of this function. | 1384 * duration of this function. |
1385 */ | 1385 */ |
1386 switch (curbuf->b_tc_flags ? curbuf->b_tc_flags : tc_flags) | 1386 switch (curbuf->b_tc_flags ? curbuf->b_tc_flags : tc_flags) |
1387 { | 1387 { |
1388 case TC_FOLLOWIC: break; | 1388 case TC_FOLLOWIC: break; |
1389 case TC_IGNORE: p_ic = TRUE; break; | 1389 case TC_IGNORE: p_ic = TRUE; break; |
1390 case TC_MATCH: p_ic = FALSE; break; | 1390 case TC_MATCH: p_ic = FALSE; break; |
1391 case TC_FOLLOWSCS: p_ic = ignorecase(pat); break; | |
1392 case TC_SMART: p_ic = ignorecase_opt(pat, TRUE, TRUE); break; | |
1391 } | 1393 } |
1392 | 1394 |
1393 help_save = curbuf->b_help; | 1395 help_save = curbuf->b_help; |
1394 orgpat.pat = pat; | 1396 orgpat.pat = pat; |
1395 #ifdef FEAT_MBYTE | 1397 #ifdef FEAT_MBYTE |