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
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.
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 keymapsstarting 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
For all visual modes:
Actual behavior
Visual and visual block:
Visual line:
Minimal config
Steps to reproduce
mkdir gitsigns_issue
cd gitsigns_issue
git init
touch file
git add file
git commit -m 'initial commit'
nvim file
vih
,Vih
or<C-v>ih
Gitsigns debug messages
No response
Gitsigns cache
No response
The text was updated successfully, but these errors were encountered: