patch 9.1.1731: Not using const qualifier for opchars
Commit:
https://github.com/vim/vim/commit/63a02ca39a73c81683ffe182c8cea9000d523299
Author: Damien Lejay <
dam...@lejay.be>
Date: Thu Sep 4 21:58:50 2025 +0200
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 <
dam...@lejay.be>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/ops.c b/src/ops.c
index b4b59de22..bf5b306dc 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 aa3897faa..c2381542b 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,
/**/