Skip to content
New issue

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

vim.fn.remove: does not remove item #22213

Closed
randomizedthinking opened this issue Feb 11, 2023 · 0 comments · Fixed by #24061
Closed

vim.fn.remove: does not remove item #22213

randomizedthinking opened this issue Feb 11, 2023 · 0 comments · Fixed by #24061
Assignees

Comments

@randomizedthinking
Copy link

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

@randomizedthinking randomizedthinking added the bug issues reporting wrong behavior label Feb 11, 2023
@zeertzjq zeertzjq added documentation lua stdlib and removed bug issues reporting wrong behavior labels Feb 11, 2023
@justinmk justinmk self-assigned this Jun 19, 2023
@justinmk justinmk mentioned this issue Jun 19, 2023
2 tasks
justinmk added a commit that referenced this issue Jun 19, 2023
- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants