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
The prev_hunk function doesn't work properly with the wrap = true flag, if the first line has been removed. Looping with prev_hunk stops at the first line
Neovim version
0.9.1
Operating system and version
Linux (rolling)
Expected behavior
Looping with prev_hunk works through the entire buffer
Actual behavior
See the description above
Minimal config
vim.o.packpath='/tmp/nvim/site'localplugins= {
gitsigns='https://github.com/lewis6991/gitsigns.nvim',
-- ADD OTHER PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE
}
forname, urlinpairs(plugins) dolocalinstall_path='/tmp/nvim/site/pack/test/start/'..nameifvim.fn.isdirectory(install_path) ==0thenvim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
endendrequire('gitsigns').setup{
debug_mode=true, -- You must add this to enable debug messages-- ADD GITSIGNS CONFIG THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE
}
-- ADD INIT.LUA SETTINGS THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE
Steps to reproduce
nvim --clean -u minimal.lua
Open a file
Create a few hunks and delete the first line
Try looping through the entire buffer with prev_hunk
Gitsigns debug messages
No response
The text was updated successfully, but these errors were encountered:
Description
The
prev_hunk
function doesn't work properly with thewrap = true
flag, if the first line has been removed. Looping withprev_hunk
stops at the first lineNeovim version
0.9.1
Operating system and version
Linux (rolling)
Expected behavior
Looping with
prev_hunk
works through the entire bufferActual behavior
See the description above
Minimal config
Steps to reproduce
nvim --clean -u minimal.lua
prev_hunk
Gitsigns debug messages
No response
The text was updated successfully, but these errors were encountered: