diff options
author | Brian Leung <leungbk@posteo.net> | 2022-04-03 02:36:01 -0700 |
---|---|---|
committer | Brian Leung <leungbk@posteo.net> | 2022-04-03 16:11:23 -0700 |
commit | 69e11b58b4db0952f11a5ff85aa7150b5f5b8db8 (patch) | |
tree | 2c10f1348a50480eacf10a003c49e6f16a5f8049 /src/nvim/search.c | |
parent | 271bb32855853b011fceaf0ad2f829bce66b2a19 (diff) | |
download | rneovim-69e11b58b4db0952f11a5ff85aa7150b5f5b8db8.tar.gz rneovim-69e11b58b4db0952f11a5ff85aa7150b5f5b8db8.tar.bz2 rneovim-69e11b58b4db0952f11a5ff85aa7150b5f5b8db8.zip |
vim-patch:8.2.4402: missing parenthesis may cause unexpected problems
Problem: Missing parenthesis may cause unexpected problems.
Solution: Add more parenthesis is macros.
https://github.com/vim/vim/commit/ae6f1d8b14c2f63811ee83ef14e32086fb3e9b83
Diffstat (limited to 'src/nvim/search.c')
-rw-r--r-- | src/nvim/search.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c index a69bd641f8..c30e69391f 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -4830,15 +4830,15 @@ typedef struct { /// bonus if the first letter is matched #define FIRST_LETTER_BONUS 15 /// penalty applied for every letter in str before the first match -#define LEADING_LETTER_PENALTY -5 +#define LEADING_LETTER_PENALTY (-5) /// maximum penalty for leading letters -#define MAX_LEADING_LETTER_PENALTY -15 +#define MAX_LEADING_LETTER_PENALTY (-15) /// penalty for every letter that doesn't match -#define UNMATCHED_LETTER_PENALTY -1 +#define UNMATCHED_LETTER_PENALTY (-1) /// penalty for gap in matching positions (-2 * k) -#define GAP_PENALTY -2 +#define GAP_PENALTY (-2) /// Score for a string that doesn't fuzzy match the pattern -#define SCORE_NONE -9999 +#define SCORE_NONE (-9999) #define FUZZY_MATCH_RECURSION_LIMIT 10 |