Mercurial > vim
comparison src/insexpand.c @ 16447:54ffc82f38a8 v8.1.1228
patch 8.1.1228: not possible to process tags with a function
commit https://github.com/vim/vim/commit/45e18cbdc40afd8144d20dcc07ad2d981636f4c9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 28 18:05:35 2019 +0200
patch 8.1.1228: not possible to process tags with a function
Problem: Not possible to process tags with a function.
Solution: Add tagfunc() (Christian Brabandt, Andy Massimino, closes https://github.com/vim/vim/issues/4010)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 28 Apr 2019 18:15:07 +0200 |
parents | 0f65f2808470 |
children | ef00b6bc186b |
comparison
equal
deleted
inserted
replaced
16446:cee0719a1b4b | 16447:54ffc82f38a8 |
---|---|
2652 save_p_ic = p_ic; | 2652 save_p_ic = p_ic; |
2653 p_ic = ignorecase(compl_pattern); | 2653 p_ic = ignorecase(compl_pattern); |
2654 | 2654 |
2655 // Find up to TAG_MANY matches. Avoids that an enormous number | 2655 // Find up to TAG_MANY matches. Avoids that an enormous number |
2656 // of matches is found when compl_pattern is empty | 2656 // of matches is found when compl_pattern is empty |
2657 g_tag_at_cursor = TRUE; | |
2657 if (find_tags(compl_pattern, &num_matches, &matches, | 2658 if (find_tags(compl_pattern, &num_matches, &matches, |
2658 TAG_REGEXP | TAG_NAMES | TAG_NOIC | TAG_INS_COMP | 2659 TAG_REGEXP | TAG_NAMES | TAG_NOIC | TAG_INS_COMP |
2659 | (ctrl_x_mode != CTRL_X_NORMAL ? TAG_VERBOSE : 0), | 2660 | (ctrl_x_mode != CTRL_X_NORMAL ? TAG_VERBOSE : 0), |
2660 TAG_MANY, curbuf->b_ffname) == OK && num_matches > 0) | 2661 TAG_MANY, curbuf->b_ffname) == OK && num_matches > 0) |
2661 ins_compl_add_matches(num_matches, matches, p_ic); | 2662 ins_compl_add_matches(num_matches, matches, p_ic); |
2663 g_tag_at_cursor = FALSE; | |
2662 p_ic = save_p_ic; | 2664 p_ic = save_p_ic; |
2663 break; | 2665 break; |
2664 | 2666 |
2665 case CTRL_X_FILES: | 2667 case CTRL_X_FILES: |
2666 if (expand_wildcards(1, &compl_pattern, &num_matches, &matches, | 2668 if (expand_wildcards(1, &compl_pattern, &num_matches, &matches, |