You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:DiffviewClose
Error executing Lua callback: vim/_editor.lua:0: nvim_exec2(): Vim(tabclose):E784: Cannot close last tab page
stack traceback:
[C]: in function 'nvim_exec2'
vim/_editor.lua: in function 'cmd'
...nvim/lua/diffview/scene/views/standard/standard_view.lua:54: in function 'close'
...iffview.nvim/lua/diffview/scene/views/diff/diff_view.lua:186: in function 'close'
...ocal/share/nvim/lazy/diffview.nvim/lua/diffview/init.lua:155: in function 'close'
....local/share/nvim/lazy/diffview.nvim/plugin/diffview.lua:38: in function <....local/share/nvim/lazy/diffview.nvim/plugin/diffview.lua:37>
Note that the error still occurs even if multiple tabs are open. Also note that the error does not occur if DiffviewClose is executed without having first executed gf
Expected behavior
DiffviewClose should behave the same way after running gf and closing the local file as it does without doing so.
Actual behavior
DiffviewClose throws an E784 when run after executing gf and closing the local file. See attached recording:
Screen.Recording.2024-05-23.at.1.28.18.AM.mov
The below recording shows the close behaviour without having first executed gf:
Screen.Recording.2024-05-23.at.1.33.45.AM.mov
Steps to reproduce
start neovim
execute DiffviewOpen
execute gf (Open the local version of the file)
close the local version of the file
execute DiffviewClose
below E784 error thrown
Health check
Output of :checkhealth diffview
diffview: require("diffview.health").check()
Checking plugin dependencies ~
- OK nvim-web-devicons installed.
Checking VCS tools ~
- The plugin requires at least one of the supported VCS tools to be valid.
- OK Git found.
- OK Git is up-to-date. (2.43.0)
- WARNING Configured `hg_cmd` is not executable: 'hg'
Log info
Relevant info from :DiffviewLog
Error executing Lua callback: vim/_editor.lua:0: nvim_exec2(): Vim(tabclose):E784: Cannot close last tab page
stack traceback:
[C]: in function 'nvim_exec2'
vim/_editor.lua: in function 'cmd'
...nvim/lua/diffview/scene/views/standard/standard_view.lua:54: in function 'close'
...iffview.nvim/lua/diffview/scene/views/diff/diff_view.lua:186: in function 'close'
...ocal/share/nvim/lazy/diffview.nvim/lua/diffview/init.lua:155: in function 'close'
....local/share/nvim/lazy/diffview.nvim/plugin/diffview.lua:38: in function <....local/share/nvim/lazy/diffview.nvim/plugin/diffview.lua:37>
Description
DiffviewOpen
gf
(Open the local version of the file)DiffviewClose
E784
error thrownNote that the error still occurs even if multiple tabs are open. Also note that the error does not occur if
DiffviewClose
is executed without having first executedgf
Expected behavior
DiffviewClose
should behave the same way after runninggf
and closing the local file as it does without doing so.Actual behavior
DiffviewClose
throws anE784
when run after executinggf
and closing the local file. See attached recording:Screen.Recording.2024-05-23.at.1.28.18.AM.mov
The below recording shows the close behaviour without having first executed
gf
:Screen.Recording.2024-05-23.at.1.33.45.AM.mov
Steps to reproduce
DiffviewOpen
gf
(Open the local version of the file)DiffviewClose
E784
error thrownHealth check
Output of
:checkhealth diffview
Log info
Relevant info from
:DiffviewLog
Neovim version
Operating system and version
macOS 14.4.1 (23E224)
Minimal config
The text was updated successfully, but these errors were encountered: