aboutsummaryrefslogtreecommitdiff
path: root/test/functional/testnvim.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-03-15 08:45:39 -0700
committerGitHub <noreply@github.com>2025-03-15 08:45:39 -0700
commitafdad5c76ec5a5ad1c3e3d21d168ed3d9349ba8c (patch)
treef55a74b9b5bf4dddee6f2da6f1d41515bbd5aaf5 /test/functional/testnvim.lua
parent19fc65acbc670869781fb4148176b8abd94fba29 (diff)
downloadrneovim-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.lua2
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