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

on_yank error related to luaeval #24

Open
bdlangton opened this issue Jul 31, 2020 · 1 comment
Open

on_yank error related to luaeval #24

bdlangton opened this issue Jul 31, 2020 · 1 comment

Comments

@bdlangton
Copy link

Hello, nice plugin. I am using vim 8.2.1300 with lua 5.3 compiled on Mac OS 10.14.3. When I do a command that copies code (yy, dd, etc) I get the following error:

~/.vim/bundle/nvim-miniyank/lua/miniyank.lua:39: bad argument #1 to 'open' (string expected, got userdata)

I have discovered that if I change the following in autoload/miniyank.vim (line 27), it fixes the issue:

- return luaeval("miniyank.write(_A[0], _A[1])",[g:miniyank_filename,a:data])
+ return luaeval("miniyank.write(_A[1], _A[2])",[g:miniyank_filename,a:data])

I am not familiar with lua, but maybe you have an idea. It seems like it expects the array to start at 1, not 0. Maybe that is just with vim and not neovim, I'm not sure.

bdlangton added a commit to bdlangton/nvim-miniyank that referenced this issue Aug 22, 2020
Related to issue bfredl#24 on the main repo.
@comfortablynick
Copy link

I am having this issue too; for now I’ve disabled on Vim since I primarily use Neovim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants