aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/034_user_function_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-03-14 17:12:35 +0800
committerGitHub <noreply@github.com>2025-03-14 09:12:35 +0000
commita25ce5762de712e67db5c3dc0f2537894d5a4420 (patch)
treea0df656f9d1f35eb7387f28dbcb2710eaafabb0c /test/functional/legacy/034_user_function_spec.lua
parent4a5585da7e35a32b1da988d4fc39496d5510e3ae (diff)
downloadrneovim-a25ce5762de712e67db5c3dc0f2537894d5a4420.tar.gz
rneovim-a25ce5762de712e67db5c3dc0f2537894d5a4420.tar.bz2
rneovim-a25ce5762de712e67db5c3dc0f2537894d5a4420.zip
test: do not dedent() in feed() (#32884)
Most callers of feed() do not expect feed() to dedent. Now use a literal space in tests where it looks better.
Diffstat (limited to 'test/functional/legacy/034_user_function_spec.lua')
-rw-r--r--test/functional/legacy/034_user_function_spec.lua11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/functional/legacy/034_user_function_spec.lua b/test/functional/legacy/034_user_function_spec.lua
index 89bf3b8920..ebac1adcb8 100644
--- a/test/functional/legacy/034_user_function_spec.lua
+++ b/test/functional/legacy/034_user_function_spec.lua
@@ -63,12 +63,11 @@ describe(
/^here
]])
feed('C<C-R>=Table("xxx", 4, "asdf")<cr>')
- -- Using a actual space will not work as feed() calls dedent on the input.
- feed('<space><C-R>=Compute(45, 0, "retval")<cr>')
- feed('<space><C-R>=retval<cr>')
- feed('<space><C-R>=Compute(45, 5, "retval")<cr>')
- feed('<space><C-R>=retval<cr>')
- feed('<space><C-R>=g:FuncRef(333)<cr>')
+ feed(' <C-R>=Compute(45, 0, "retval")<cr>')
+ feed(' <C-R>=retval<cr>')
+ feed(' <C-R>=Compute(45, 5, "retval")<cr>')
+ feed(' <C-R>=retval<cr>')
+ feed(' <C-R>=g:FuncRef(333)<cr>')
feed('<cr>')
feed('XX+-XX<cr>')
feed('---*---<cr>')