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
@@ 1,7 1,7 @@
some context 1
some context 2
some context 3
-a removed line 4+an added line 4
some context 5
some context 6
some context 7
If the cursor is one line 5, 6 or 7, and there is another change later in the file, running :NGitStageNextHunk would be expected to select the next hunk (because the cursor is after the changed lines, the 4), but because the hunk includes context lines, the lines 5, 6 and 7 are part of this first hunk.
It would be good to ignore these lines when detecting the next hunk.
The problem is that the number of context lines (default 3) is configurable (with git config diff.context #) and this value should be taken in account when identifying hunk.
The text was updated successfully, but these errors were encountered:
A hunk contains some context lines, for example:
If the cursor is one line 5, 6 or 7, and there is another change later in the file, running
:NGitStageNextHunk
would be expected to select the next hunk (because the cursor is after the changed lines, the 4), but because the hunk includes context lines, the lines 5, 6 and 7 are part of this first hunk.It would be good to ignore these lines when detecting the next hunk.
The problem is that the number of context lines (default 3) is configurable (with
git config diff.context #
) and this value should be taken in account when identifying hunk.The text was updated successfully, but these errors were encountered: