aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-02-12 10:31:41 +0800
committerGitHub <noreply@github.com>2025-02-12 10:31:41 +0800
commit6982106f8ca5ceaa00c9909e64cc94d2794b9143 (patch)
treeaf93736eb13fd5dc0779734cb2c7f8daa7f774ad
parent00d75a24cfb74e8f35d73ebb0e59a7b9248950c1 (diff)
downloadrneovim-6982106f8ca5ceaa00c9909e64cc94d2794b9143.tar.gz
rneovim-6982106f8ca5ceaa00c9909e64cc94d2794b9143.tar.bz2
rneovim-6982106f8ca5ceaa00c9909e64cc94d2794b9143.zip
refactor(insexpand.c): remove duplicate assignment (#32410)
-rw-r--r--src/nvim/insexpand.c1
1 files changed, 0 insertions, 1 deletions
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);