diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-03-14 17:12:35 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-14 09:12:35 +0000 |
| commit | a25ce5762de712e67db5c3dc0f2537894d5a4420 (patch) | |
| tree | a0df656f9d1f35eb7387f28dbcb2710eaafabb0c /test/functional/testnvim.lua | |
| parent | 4a5585da7e35a32b1da988d4fc39496d5510e3ae (diff) | |
| download | rneovim-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/testnvim.lua')
| -rw-r--r-- | test/functional/testnvim.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/testnvim.lua b/test/functional/testnvim.lua index c0375b083a..ff5f9ff2e8 100644 --- a/test/functional/testnvim.lua +++ b/test/functional/testnvim.lua @@ -366,7 +366,7 @@ end --- @param ... string function M.feed(...) for _, v in ipairs({ ... }) do - nvim_feed(dedent(v)) + nvim_feed(v) end end @@ -615,7 +615,7 @@ function M.insert(...) nvim_feed('i') for _, v in ipairs({ ... }) do local escaped = v:gsub('<', '<lt>') - M.feed(escaped) -- This also dedents :P + nvim_feed(dedent(escaped)) end nvim_feed('<ESC>') end |