Mercurial > vim
comparison src/tag.c @ 28809:d0241e74bfdb v8.2.4928
patch 8.2.4928: various white space and cosmetic mistakes
Commit: https://github.com/vim/vim/commit/6ed545e79735f23ff8e650bc2f0967e5a0baedc9
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon May 9 20:09:23 2022 +0100
patch 8.2.4928: various white space and cosmetic mistakes
Problem: Various white space and cosmetic mistakes.
Solution: Change spaces to tabs, improve comments.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 09 May 2022 21:15:04 +0200 |
parents | d770568e6c98 |
children | 827d9f2b7a71 |
comparison
equal
deleted
inserted
replaced
28808:0f0fed554cdc | 28809:d0241e74bfdb |
---|---|
278 char_u **new_matches; | 278 char_u **new_matches; |
279 int use_tagstack; | 279 int use_tagstack; |
280 int skip_msg = FALSE; | 280 int skip_msg = FALSE; |
281 char_u *buf_ffname = curbuf->b_ffname; // name to use for | 281 char_u *buf_ffname = curbuf->b_ffname; // name to use for |
282 // priority computation | 282 // priority computation |
283 int use_tfu = 1; | 283 int use_tfu = 1; |
284 | 284 |
285 // remember the matches for the last used tag | 285 // remember the matches for the last used tag |
286 static int num_matches = 0; | 286 static int num_matches = 0; |
287 static int max_num_matches = 0; // limit used for match search | 287 static int max_num_matches = 0; // limit used for match search |
288 static char_u **matches = NULL; | 288 static char_u **matches = NULL; |
1420 char_u *buf_ffname) // name of buffer for priority | 1420 char_u *buf_ffname) // name of buffer for priority |
1421 { | 1421 { |
1422 pos_T save_pos; | 1422 pos_T save_pos; |
1423 list_T *taglist; | 1423 list_T *taglist; |
1424 listitem_T *item; | 1424 listitem_T *item; |
1425 int ntags = 0; | 1425 int ntags = 0; |
1426 int result = FAIL; | 1426 int result = FAIL; |
1427 typval_T args[4]; | 1427 typval_T args[4]; |
1428 typval_T rettv; | 1428 typval_T rettv; |
1429 char_u flagString[4]; | 1429 char_u flagString[4]; |
1430 dict_T *d; | 1430 dict_T *d; |
1431 taggy_T *tag = &curwin->w_tagstack[curwin->w_tagstackidx]; | 1431 taggy_T *tag = &curwin->w_tagstack[curwin->w_tagstackidx]; |
1818 * 'tagfunc' is not used or the 'tagfunc' returns v:null and FAIL otherwise. | 1818 * 'tagfunc' is not used or the 'tagfunc' returns v:null and FAIL otherwise. |
1819 */ | 1819 */ |
1820 static int | 1820 static int |
1821 findtags_apply_tfu(findtags_state_T *st, char_u *pat, char_u *buf_ffname) | 1821 findtags_apply_tfu(findtags_state_T *st, char_u *pat, char_u *buf_ffname) |
1822 { | 1822 { |
1823 int use_tfu = ((st->flags & TAG_NO_TAGFUNC) == 0); | 1823 int use_tfu = ((st->flags & TAG_NO_TAGFUNC) == 0); |
1824 int retval; | 1824 int retval; |
1825 | 1825 |
1826 if (!use_tfu || tfu_in_use || *curbuf->b_p_tfu == NUL) | 1826 if (!use_tfu || tfu_in_use || *curbuf->b_p_tfu == NUL) |
1827 return NOTDONE; | 1827 return NOTDONE; |
1828 | 1828 |