mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
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
63a02ca39a
Co-authored-by: Damien Lejay <damien@lejay.be>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user