Mercurial > vim
comparison src/tag.c @ 7266:6ba7182fb7bd v7.4.941
commit https://github.com/vim/vim/commit/0f6562e9036f889185dff49a75c7fc5ffb28b307
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 24 18:48:14 2015 +0100
patch 7.4.941
Problem: There is no way to ignore case only for tag searches.
Solution: Add the 'tagcase' option. (Gary Johnson)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 Nov 2015 19:00:06 +0100 |
parents | b782813c73a6 |
children | 0b6c37dd858d |
comparison
equal
deleted
inserted
replaced
7265:b985668725fa | 7266:6ba7182fb7bd |
---|---|
1383 int get_it_again = FALSE; | 1383 int get_it_again = FALSE; |
1384 #ifdef FEAT_CSCOPE | 1384 #ifdef FEAT_CSCOPE |
1385 int use_cscope = (flags & TAG_CSCOPE); | 1385 int use_cscope = (flags & TAG_CSCOPE); |
1386 #endif | 1386 #endif |
1387 int verbose = (flags & TAG_VERBOSE); | 1387 int verbose = (flags & TAG_VERBOSE); |
1388 int save_p_ic = p_ic; | |
1389 | |
1390 /* | |
1391 * Change the value of 'ignorecase' according to 'tagcase' for the | |
1392 * duration of this function. | |
1393 */ | |
1394 switch (curbuf->b_tc_flags ? curbuf->b_tc_flags : tc_flags) | |
1395 { | |
1396 case TC_FOLLOWIC: break; | |
1397 case TC_IGNORE: p_ic = TRUE; break; | |
1398 case TC_MATCH: p_ic = FALSE; break; | |
1399 } | |
1388 | 1400 |
1389 help_save = curbuf->b_help; | 1401 help_save = curbuf->b_help; |
1390 orgpat.pat = pat; | 1402 orgpat.pat = pat; |
1391 #ifdef FEAT_MBYTE | 1403 #ifdef FEAT_MBYTE |
1392 vimconv.vc_type = CONV_NONE; | 1404 vimconv.vc_type = CONV_NONE; |
2550 curbuf->b_help = help_save; | 2562 curbuf->b_help = help_save; |
2551 #ifdef FEAT_MULTI_LANG | 2563 #ifdef FEAT_MULTI_LANG |
2552 vim_free(saved_pat); | 2564 vim_free(saved_pat); |
2553 #endif | 2565 #endif |
2554 | 2566 |
2567 p_ic = save_p_ic; | |
2568 | |
2555 return retval; | 2569 return retval; |
2556 } | 2570 } |
2557 | 2571 |
2558 static garray_T tag_fnames = GA_EMPTY; | 2572 static garray_T tag_fnames = GA_EMPTY; |
2559 static void found_tagfile_cb __ARGS((char_u *fname, void *cookie)); | 2573 static void found_tagfile_cb __ARGS((char_u *fname, void *cookie)); |