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: #15178
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/testdir/Make_all.mak b/src/testdir/Make_all.mak
index a49f158..f199fec 100644
--- a/src/testdir/Make_all.mak
+++ b/src/testdir/Make_all.mak
@@ -20,7 +20,8 @@
test24 \
test25 \
test26 \
- test27
+ test27 \
+ test28
SCRIPTS_TINY_OUT = \
test10.out \
@@ -31,7 +32,8 @@
test24.out \
test25.out \
test26.out \
- test27.out
+ test27.out \
+ test28.out
# Tests for Vim9 script.
TEST_VIM9 = \
diff --git a/src/testdir/test28.in b/src/testdir/test28.in
new file mode 100644
index 0000000..3d5289d
--- /dev/null
+++ b/src/testdir/test28.in
@@ -0,0 +1,13 @@
+Test for using CTRL-A/CTRL-X in tiny mode
+
+STARTTEST
+/12352
+/12354
+:/^STARTHERE/+,$w! test.out
+:qa!
+ENDTEST
+
+STARTHERE
+12352
+
+12354
diff --git a/src/testdir/test28.ok b/src/testdir/test28.ok
new file mode 100644
index 0000000..085c133
--- /dev/null
+++ b/src/testdir/test28.ok
@@ -0,0 +1,3 @@
+12353
+
+12353