-
-
Notifications
You must be signed in to change notification settings - Fork 254
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Buggy behavior when using gitsigns.select_hunk or <cmd>Gitsigns select_hunk<CR>.
If used in visual or visual block mode, instead of selecting the whole hunk, it only selects
until the end of it. For visual line, the cursor will jump to the end of hunk without selecting
anything.
I've also noticed that :Gitsigns select_hunk<CR> works fine, but i tend to avoid using keymaps
starting with :, as it can cause little annoyances on my particular config. It's just not as consistent.
Neovim version
v0.11.0
Operating system and version
Ubuntu 24.04.1
Expected behavior
Actual behavior
Minimal config
local gitsigns = require('gitsigns')
vim.keymap.set({ 'o', 'x' }, 'ih', gitsigns.select_hunk, { desc = 'Select hunk' })Steps to reproduce
mkdir gitsigns_issuecd gitsigns_issuegit inittouch filegit add filegit commit -m 'initial commit'nvim file- Add some new lines
- Go to any new line on the hunk after the first one
- Type
vih,Vihor<C-v>ih
Gitsigns debug messages
No response
Gitsigns cache
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working


