commit 17601e709f5df683e5cbeaaf810e8de6ce98fc43
parent ed40d89d7c55fdc318095ee0d0f181ddafaca8e1
Author: Jan Edmund Lazo <jan.lazo@mail.utoronto.ca>
Date: Sat, 23 Aug 2025 13:56:18 -0400
vim-patch:9.1.0546: vim-tiny fails on CTRL-X/CTRL-A
Problem: vim-tiny fails on CTRL-X/CTRL-A
(Rob Foehl, after 9.1.0172)
Solution: Move #ifdefs, so that after changing the line in del_bytes,
the cached textlen value is invalidated
closes: vim/vim#15178
https://github.com/vim/vim/commit/03acd4761be1c2766d3ec17534ea63cdf8dd565d
Co-authored-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat:
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/test/functional/legacy/028_source_ctrl_v_spec.lua b/test/functional/legacy/028_source_ctrl_v_spec.lua
@@ -5,10 +5,10 @@ local n = require('test.functional.testnvim')()
local clear, feed, insert = n.clear, n.feed, n.insert
local feed_command, expect = n.feed_command, n.expect
-describe('CTRL-V at the end of the line', function()
- setup(clear)
+describe('028', function()
+ before_each(clear)
- it('is working', function()
+ it('CTRL-V at the end of the line is working', function()
insert([[
firstline
map __1 afirst
@@ -35,6 +35,21 @@ describe('CTRL-V at the end of the line', function()
map __2 asdsecondsdsd0map __5 asd0fifth]])
end)
+ it('CTRL-X/CTRL-A is working', function()
+ insert([[
+ 12352
+
+ 12354]])
+ feed_command('/12352')
+ feed('<C-A>')
+ feed_command('/12354')
+ feed('<C-X>')
+ expect([[
+ 12353
+
+ 12353]])
+ end)
+
teardown(function()
os.remove('Xtestfile')
end)