aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/search.h
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2022-01-01 23:06:09 +0000
committerSean Dewar <seandewar@users.noreply.github.com>2022-02-07 17:20:51 +0000
commitce797e08f539dc24d16ea8c02591296bbbc83772 (patch)
treeb9ac154502bc1c4d7afb239859a26541b1e6515e /src/nvim/search.h
parent715fbcbb8c6ec4385d1168b1260fdb991d4e6fc5 (diff)
downloadrneovim-ce797e08f539dc24d16ea8c02591296bbbc83772.tar.gz
rneovim-ce797e08f539dc24d16ea8c02591296bbbc83772.tar.bz2
rneovim-ce797e08f539dc24d16ea8c02591296bbbc83772.zip
vim-patch:8.2.2813: cannot grep using fuzzy matching
Problem: Cannot grep using fuzzy matching. Solution: Add the "f" flag to :vimgrep. (Yegappan Lakshmanan, closes vim/vim#8152) https://github.com/vim/vim/commit/bb01a1ef3a093cdb36877ba73474719c531dc8cb
Diffstat (limited to 'src/nvim/search.h')
-rw-r--r--src/nvim/search.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/search.h b/src/nvim/search.h
index 15b8d41f39..53059cc1ea 100644
--- a/src/nvim/search.h
+++ b/src/nvim/search.h
@@ -55,6 +55,9 @@
#define SEARCH_STAT_DEF_MAX_COUNT 99
#define SEARCH_STAT_BUF_LEN 12
+/// Maximum number of characters that can be fuzzy matched
+#define MAX_FUZZY_MATCHES 256
+
/// Structure containing offset definition for the last search pattern
///
/// @note Only offset for the last search pattern is used, not for the last