aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/search.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/search.h')
-rw-r--r--src/nvim/search.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/search.h b/src/nvim/search.h
index 092098d5fd..2f140ba840 100644
--- a/src/nvim/search.h
+++ b/src/nvim/search.h
@@ -99,6 +99,14 @@ typedef struct searchstat {
int last_maxcount; // the max count of the last search
} searchstat_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 *str;
+ int score;
+} fuzmatch_str_T;
+
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "search.h.generated.h"
#endif