From 6982106f8ca5ceaa00c9909e64cc94d2794b9143 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 12 Feb 2025 10:31:41 +0800 Subject: [PATCH] refactor(insexpand.c): remove duplicate assignment (#32410) --- src/nvim/insexpand.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/nvim/insexpand.c b/src/nvim/insexpand.c index 513da0b403..736c7ed582 100644 --- 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);