summaryrefslogtreecommitdiffstats
path: root/src/insexpand.c
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2024-06-11 19:37:04 +0200
committerChristian Brabandt <cb@256bit.org>2024-06-11 19:40:50 +0200
commit40c1c3317d92f8c2adadf744fab72e4458e2a9fa (patch)
tree3eb4d44aa173b966201f28f9f2d9b8155eee00f3 /src/insexpand.c
parent059cbe8933550e4f2b10ab564fb4398e95280198 (diff)
patch 9.1.0476: Cannot see matched text in popup menuv9.1.0476
Problem: Cannot see matched text in popup menu Solution: Introduce 2 new highlighting groups: PmenuMatch and PmenuMatchSel (glepnir) ping @habamax, @neutaaaaan @romainl because vim/colorschemes may need some updates, @lifepillar for updating vim-colortemplate closes: #14694 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/insexpand.c')
-rw-r--r--src/insexpand.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/insexpand.c b/src/insexpand.c
index 19a4a21737..74be94cf4b 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -1432,6 +1432,15 @@ ins_compl_show_pum(void)
#define DICT_EXACT (2) // "dict" is the exact name of a file
/*
+ * Get current completion leader
+ */
+ char_u *
+ins_compl_leader(void)
+{
+ return compl_leader;
+}
+
+/*
* Add any identifiers that match the given pattern "pat" in the list of
* dictionary files "dict_start" to the list of completions.
*/