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
When <CR> is pressed with the cursor on the first line of the g? keymap overview, a Lua error is triggered by an attempt to index the nil variable context at help_panel.lua:85:
Pressing <CR> on any other line does not trigger the error.
Expected behavior
The keypress should be ignored without error.
Actual behavior
This error appears:
E5108: Error executing lua: ...gins/diffview.nvim/lua/diffview/ui/panels/help_panel.lua:85: attempt to index field 'context' (a nil value)
stack traceback:
...gins/diffview.nvim/lua/diffview/ui/panels/help_panel.lua:85: in function 'apply_cmd'
...gins/diffview.nvim/lua/diffview/ui/panels/help_panel.lua:109: in function <...gins/diffview.nvim/lua/diffview/ui/panels/help_panel.lua:108>
Steps to reproduce
nvim --clean -u mini.lua
Create a dummy Git repo with :!git init, or :cd to an existing one.
:DiffviewOpen
g?
Leaving the cursor at the top of the popup window, press <CR>
Health check
Output of :checkhealth diffview
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.44.0)
- WARNING Configured `hg_cmd` is not executable: 'hg'
Description
When
<CR>
is pressed with the cursor on the first line of theg?
keymap overview, a Lua error is triggered by an attempt to index the nil variablecontext
athelp_panel.lua:85
:diffview.nvim/lua/diffview/ui/panels/help_panel.lua
Lines 80 to 96 in 3dc498c
Pressing
<CR>
on any other line does not trigger the error.Expected behavior
The keypress should be ignored without error.
Actual behavior
This error appears:
Steps to reproduce
nvim --clean -u mini.lua
:!git init
, or:cd
to an existing one.:DiffviewOpen
g?
<CR>
Health check
Output of
:checkhealth diffview
Log info
No response
Neovim version
Operating system and version
Linux 6.7.8-arch1-1 x86_64 GNU/Linux
Minimal config
The text was updated successfully, but these errors were encountered: