vim-patch:9.1.1731: Not using const qualifier for opchars (#35634)

Problem:  Not using const qualifier
Solution: Mark the opchars array const

closes: vim/vim#18196

https://github.com/vim/vim/commit/63a02ca39a73c81683ffe182c8cea9000d523299

Co-authored-by: Damien Lejay <damien@lejay.be>
This commit is contained in:
zeertzjq
2025-09-05 08:20:28 +08:00
committed by GitHub
parent 7fcdb0541f
commit 0bf4b7898c
+1 -1
View File
@@ -99,7 +99,7 @@ static const char e_search_pattern_and_expression_register_may_not_contain_two_o
/// The names of operators.
/// IMPORTANT: Index must correspond with defines in ops.h!!!
/// The third field indicates whether the operator always works on lines.
static char opchars[][3] = {
static const char opchars[][3] = {
{ NUL, NUL, 0 }, // OP_NOP
{ 'd', NUL, OPF_CHANGE }, // OP_DELETE
{ 'y', NUL, 0 }, // OP_YANK