Setting a float value in a table in a table using vim.api.nvim_win_set_var
results in the inner table have values as a table with true
and false
as the indexes
#28738
Labels
closed:wontfix
current behavior is by design, and change is not desired
Problem
Here we have a table that has the following values
This is assigned to the current window using
vim.api.nvim_win_set_var
. However, after fetching the value again with the respective command:Results in this:
Steps to reproduce
nvim --clean
:lua vim.api.nvim_win_set_var(vim.fn.win_getid(), "test", {origin={x = 50.5, y = 60.023}})
:lua vim.print(vim.api.nvim_win_get_var(vim.fn.win_getid(), "test"))
Expected behavior
I expect that the value I have assigned to the window be returned in the same way I had assigned it
Neovim version (nvim -v)
NVIM v0.9.5
Vim (not Nvim) behaves the same?
not tested
Operating system/version
Windows 10 22H2
Terminal name/version
Windows Terminal 1.19.11213.0
$TERM environment variable
none (ran using echo $Env:TERM)
Installation
repo using the zip file
The text was updated successfully, but these errors were encountered: