prev_hunk
and next_hunk
focuses on the preview when there's only one hunk
#707
Labels
bug
Something isn't working
Description
As the title explains, if I only have one hunk in a buffer and open the preview menu on that hunk, then call
prev_hunk
ornext_hunk
, it'll focus on the preview window.Neovim version
NVIM v0.9.0-dev-4d4e697 Build type: Release LuaJIT 2.1.0-beta3 Compiled by utilyre Features: +acl +iconv +tui See ":help feature-compile" system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/local/share/nvim" Run :checkhealth for more info
Operating system and version
Archlinux
Expected behavior
Should do nothing.
Actual behavior
Focuses the preview window.
Minimal config
Steps to reproduce
nvim --clean -u minimal.lua
:Gitsigns preview_hunk
:Gitsigns next_hunk
or:Gitsigns prev_hunk
Gitsigns debug messages
No response
The text was updated successfully, but these errors were encountered: