patch 8.2.4463: completion only uses strict matching
Problem: Completion only uses strict matching.
Solution: Add the "fuzzy" item for 'wildoptions'. (Yegappan Lakshmanan,
closes #9803)
diff --git a/src/structs.h b/src/structs.h
index 1e759f5..1a98004 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -4516,3 +4516,11 @@
int sw_same_win; // VIsual_active was not reset
int sw_visual_active;
} switchwin_T;
+
+// Fuzzy matched string list item. Used for fuzzy match completion. Items are
+// usually sorted by 'score'. The 'idx' member is used for stable-sort.
+typedef struct {
+ int idx;
+ char_u *str;
+ int score;
+} fuzmatch_str_T;