From 63a02ca39a73c81683ffe182c8cea9000d523299 Mon Sep 17 00:00:00 2001 From: Damien Lejay Date: Thu, 4 Sep 2025 21:58:50 +0200 Subject: [PATCH] patch 9.1.1731: Not using const qualifier for opchars Problem: Not using const qualifier Solution: Mark the opchars array const closes: #18196 Signed-off-by: Damien Lejay Signed-off-by: Christian Brabandt --- src/ops.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ops.c b/src/ops.c index b4b59de226..bf5b306dc0 100644 --- a/src/ops.c +++ b/src/ops.c @@ -30,7 +30,7 @@ static void pbyte(pos_T lp, int c); * IMPORTANT: Index must correspond with defines in vim.h!!! * The third field holds OPF_ flags. */ -static char opchars[][3] = +static const char opchars[][3] = { {NUL, NUL, 0}, // OP_NOP {'d', NUL, OPF_CHANGE}, // OP_DELETE diff --git a/src/version.c b/src/version.c index aa3897faa0..c2381542b9 100644 --- a/src/version.c +++ b/src/version.c @@ -724,6 +724,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1731, /**/ 1730, /**/