Skip to content

Conversation

andreaswachowski
Copy link

neovim 0.9.0 replaced nvim_exec with nvim_exec2[1] which changed the error message string:

nvim < 0.9.0: Vim(call):E117: Unknown function: netrw#CheckIfRemote
nvim >=0.9.0: vim/_editor.lua:0: nvim_exec2(): Vim(call):E117: Unknown function: netrw#CheckIfRemote

Because the match with startswith now fails, the fallback is not executed and nothing happens while attempting to open the URL.

Fix it by searching for the error message anywhere in the string.

[1] neovim/neovim#19032

neovim 0.9.0 replaced nvim_exec with nvim_exec2[1] which changed
the error message string:

nvim < 0.9.0: Vim(call):E117: Unknown function: netrw#CheckIfRemote
nvim >=0.9.0: vim/_editor.lua:0: nvim_exec2(): Vim(call):E117: Unknown function: netrw#CheckIfRemote

Because the match with startswith now fails, the fallback is not
executed and nothing happens while attempting to open the URL.

Fix it by searching for the error message anywhere in the string.

[1] neovim/neovim#19032
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

Successfully merging this pull request may close these issues.

1 participant