-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
diff-hl-show-hunk-next tell "There is no next change", but, diff-hl-next-hunk
can jump to it.
#175
Comments
Hi! I can reproduce this, I think. Though I think the actual scenario is a little more complicated: you first have to have tested with Does the below help, or are we talking about different scenarios? diff --git a/diff-hl-show-hunk.el b/diff-hl-show-hunk.el
index 00f6d92..42c3523 100644
--- a/diff-hl-show-hunk.el
+++ b/diff-hl-show-hunk.el
@@ -342,7 +342,9 @@ end of the OVERLAY, so posframe/inline is placed below the hunk."
(defun diff-hl-show-hunk-next ()
"Go to next hunk/change and show it."
(interactive)
- (let* ((point (if diff-hl-show-hunk--original-overlay
+ (let* ((point (if (and
+ diff-hl-show-hunk--original-buffer
+ diff-hl-show-hunk--original-overlay)
(overlay-start diff-hl-show-hunk--original-overlay)
nil))
(next-overlay (diff-hl-show-hunk--next-hunk nil point))) If it does not, or if the fix doesn't seem enough for you, what if after step 5 you refresh the highlightings with |
Yes, i consider behavior is almost same for now, though, there still exists some issue, will describe later. After run Or So, i thought we have two issue:
|
This issue still exists, simply to say, current git status is modifed status:
C+v] can jump to next hunk, but (diff-hl-show-hunk-next) can not. |
I don't know which command is work correct, but if one work correct, i guess another one must be incorrect.
Following is a reproduce:
we assume a
Gemfile
exists some different.restart emacs as daemon, and open Gemfile use emacs client
switch to beginning of buffer.
Both
C-x v ]
andC-x v }
can jump to the difference as expect.run
git add Gemfie
on command lineC-x v ]
can jump, butC-x v }
not jump, message: There is no next changeQuestion 1: which command is correct?
When i set (setq diff-hl-show-staged-changes nil), not jump is correct, right?
run
git reset
on command linebehavior same as 6, in this case, jump is correct, right?
I assume diff-hl check the git operation from command line is not so easy, e.g. when i do staging from command line successful, i still see the fringe indicate exists diff on this line.
though, that maybe another issue,
but, this issue focus on above two command should not behavior different in this case.
Thank you.
The text was updated successfully, but these errors were encountered: