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

[bug fix] Fix the code error when there is a null value in the json returned by the api #396

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

BetaGo
Copy link
Contributor

@BetaGo BetaGo commented Feb 28, 2024

add param to vim.json.decode , converts null in JSON objects to Lua nil instead of vim.NIL

Because:

if vim.NIL then
  -- The following code will execute
  print("hello");
end

@jackMort jackMort merged commit df53728 into jackMort:main Mar 6, 2024
1 check passed
Wezea pushed a commit to Wezea/ChatGPT.nvim that referenced this pull request Apr 20, 2024
qaptoR pushed a commit to qaptoR-nvim/ChatGPT.nvim that referenced this pull request Jul 6, 2024
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.

2 participants