]> git.feebdaed.xyz Git - 0xmirror/vim.git/commit
patch 9.1.1923: wrong error when assigning to read-only register
authorDoug Kearns <dougkearns@gmail.com>
Thu, 20 Nov 2025 20:59:10 +0000 (20:59 +0000)
committerChristian Brabandt <cb@256bit.org>
Thu, 20 Nov 2025 20:59:10 +0000 (20:59 +0000)
commit2447131e00c40dbc4726308c937a5437668493c6
treeb9a1cf03ee953dd9fc190ad895e549d19f705c13
parentea86e53c2b2d4c55d1878d7226b10005cb2e0326
patch 9.1.1923: wrong error when assigning to read-only register

Problem:  When assigning to @. in a :let command an incorrect "E15"
          error is emitted.
Solution: Emit the correct "E354" error. (Doug Kearns).

An incorrect "E488" error was also emitted in Vim9 script assignments.

It appears that the code deleted in this commit was added to work around
a limitation in the returned value from find_name_end() that no longer
exists.

See commit 76b92b2830841fd4e05006cc3cad1d8f0bc8101b (tag: v7.0b).

closes: #18757

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/evalvars.c
src/testdir/test_registers.vim
src/testdir/test_vim9_expr.vim
src/version.c