refactor(insexpand.c): remove duplicate assignment (#32410)

This commit is contained in:
zeertzjq 2025-02-12 10:31:41 +08:00 committed by GitHub
parent 00d75a24cf
commit 6982106f8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);