summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/_editor.lua
diff options
context:
space:
mode:
authorGabriel Ford <gabe@fordltc.net>2025-06-28 19:12:42 -0400
committerGitHub <noreply@github.com>2025-06-28 23:12:42 +0000
commit331de6afa6ffa28ea5165de50adb39c5f61a52c2 (patch)
tree1e344c203b8762cc52b43ad644cecc61834b8e84 /runtime/lua/vim/_editor.lua
parent10a03e83e357f118be90a11d8b281d8459718b86 (diff)
fix(tui): don't crash when nvim__screenshot() is called with bad path (#34594)
Problem: Currently `vim.api.nvim__screenshot()` crashes when called with an invalid path. This is because we don't check if `fopen()` returns a null pointer. Solution: Bail out if `fopen()` returns a null pointer. Fixes: https://github.com/neovim/neovim/issues/34593
Diffstat (limited to 'runtime/lua/vim/_editor.lua')
0 files changed, 0 insertions, 0 deletions