commit 6982106f8ca5ceaa00c9909e64cc94d2794b9143
parent 00d75a24cfb74e8f35d73ebb0e59a7b9248950c1
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed, 12 Feb 2025 10:31:41 +0800
refactor(insexpand.c): remove duplicate assignment (#32410)
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/src/nvim/insexpand.c b/src/nvim/insexpand.c
@@ -859,7 +859,6 @@ static int ins_compl_add(char *const str, int len, char *const fname, char *cons
// Allocate a new match structure.
// Copy the values to the new match structure.
match = xcalloc(1, sizeof(compl_T));
- match->cp_number = -1;
match->cp_number = flags & CP_ORIGINAL_TEXT ? 0 : -1;
match->cp_str = cbuf_to_string(str, (size_t)len);