0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.4512: the find_tags_in_file() function is much too long

Problem:    The find_tags_in_file() function is much too long.
Solution:   Refactor into multiple smaller functions. (Yegappan Lakshmanan,
            closes #9892)
This commit is contained in:
Yegappan Lakshmanan
2022-03-05 14:35:12 +00:00
committed by Bram Moolenaar
parent c12dc47b8f
commit df1bbea436
8 changed files with 721 additions and 647 deletions

View File

@@ -8106,8 +8106,7 @@ hgr_search_file(
// Convert a line if 'encoding' is not utf-8 and
// the line contains a non-ASCII character.
if (p_vc->vc_type != CONV_NONE
&& has_non_ascii(IObuff))
if (p_vc->vc_type != CONV_NONE && has_non_ascii(IObuff))
{
line = string_convert(p_vc, IObuff, NULL);
if (line == NULL)