We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using vim.fn.remove to remove items from a list, it does not do the job.
vim.fn.remove
nvim --clean :edit foo.lua local list = {1, 2, 3} vim.pretty_print(list) vim.fn.remove(list, 0) vim.pretty_print(list) :w :source %
It is expected the list value to become {2, 3}, yet the value is still {1, 2, 3}.
{2, 3}
{1, 2, 3}
0.8.2
not tested.
Debian 11
urxvt
tmux-256color
Build from repo
The text was updated successfully, but these errors were encountered:
docs #24061
72a6643
- nvim requires rpc responses in reverse order. #19932 - NVIM_APPNAME: UIs normally should NOT set this. ref #23520 fix #24050 fix #23660 fix #23353 fix #23337 fix #22213 fix #19161 fix #18088 fix #20693
justinmk
Successfully merging a pull request may close this issue.
Describe the bug
When using
vim.fn.remove
to remove items from a list, it does not do the job.Steps to reproduce
nvim --clean
:edit foo.lua
local list = {1, 2, 3}
vim.pretty_print(list)
vim.fn.remove(list, 0)
vim.pretty_print(list)
:w
:source %
Expected behavior
It is expected the list value to become
{2, 3}
, yet the value is still{1, 2, 3}
.Neovim version (nvim -v)
0.8.2
Vim (not Nvim) behaves the same?
not tested.
Operating system/version
Debian 11
Terminal name/version
urxvt
$TERM environment variable
tmux-256color
Installation
Build from repo
The text was updated successfully, but these errors were encountered: