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
Describe the bug
In the options, the number of context lines must be set to exactly 3, otherwise hunk management does not work at all.
That is, staging / unstaging / resetting of whole hunks.
To Reproduce
Steps to reproduce the behavior:
Have multiple unstaged changes scattered across a file, e.g. in line 1 and line 10
Open gitui in the first Tab (Status)
Press O
Set the option Context lines to any other number than 3
Try to stage a single hunk by selecting it and pressing Enter (nothing happens)
Stage the whole file
Try to unstage a single hunk by selecting it and pressing Enter (error: hunk not found)
Unstage the whole file
Try to reset a hunk by selecting it and pressing Shift D (crash: hunk not found)
Expected behavior
Staging, unstaging and resetting works like with number of context lines = 3
Context (please complete the following information):
Describe the bug
In the options, the number of context lines must be set to exactly 3, otherwise hunk management does not work at all.
That is, staging / unstaging / resetting of whole hunks.
To Reproduce
Steps to reproduce the behavior:
gitui
in the first Tab (Status)Context lines
to any other number than 3Enter
(nothing happens
)Enter
(error:hunk not found
)Shift D
(crash:hunk not found
)Expected behavior
Staging, unstaging and resetting works like with number of context lines = 3
Context (please complete the following information):
Related issues:
The text was updated successfully, but these errors were encountered: