diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2025-03-15 08:45:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-15 08:45:39 -0700 |
| commit | afdad5c76ec5a5ad1c3e3d21d168ed3d9349ba8c (patch) | |
| tree | f55a74b9b5bf4dddee6f2da6f1d41515bbd5aaf5 /test/functional/testnvim.lua | |
| parent | 19fc65acbc670869781fb4148176b8abd94fba29 (diff) | |
| download | rneovim-afdad5c76ec5a5ad1c3e3d21d168ed3d9349ba8c.tar.gz rneovim-afdad5c76ec5a5ad1c3e3d21d168ed3d9349ba8c.tar.bz2 rneovim-afdad5c76ec5a5ad1c3e3d21d168ed3d9349ba8c.zip | |
refactor(test): deprecate n.feed_command() #32915
Problem:
`feed_command()` was added as a "bridge" for old test code. 99% of those
cases should be using `n.command()`, which raises errors instead of
silently continuing the test.
Solution:
Deprecate `feed_command()`. It should not be used in new tests.
All usages of `feed_command()` should be converted to `command()` or
`feed()`.
Diffstat (limited to 'test/functional/testnvim.lua')
| -rw-r--r-- | test/functional/testnvim.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/testnvim.lua b/test/functional/testnvim.lua index ff5f9ff2e8..0a12cf0920 100644 --- a/test/functional/testnvim.lua +++ b/test/functional/testnvim.lua @@ -620,6 +620,8 @@ function M.insert(...) nvim_feed('<ESC>') end +--- @deprecated Use `command()` or `feed()` instead. +--- --- Executes an ex-command by user input. Because nvim_input() is used, Vimscript --- errors will not manifest as client (lua) errors. Use command() for that. --- @param ... string |