Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
996884b2
Commit
996884b2
authored
Apr 16, 2004
by
Stefan Monnier
Browse files
(diff-end-of-hunk): Be more careful with unified hunks.
parent
a1bfe073
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
lisp/diff-mode.el
lisp/diff-mode.el
+5
-1
No files found.
lisp/diff-mode.el
View file @
996884b2
...
...
@@ -305,7 +305,11 @@ when editing big diffs)."
(
defvar
diff-narrowed-to
nil
)
(
defun
diff-end-of-hunk
(
&optional
style
)
(
if
(
looking-at
diff-hunk-header-re
)
(
goto-char
(
match-end
0
)))
(
when
(
looking-at
diff-hunk-header-re
)
(
unless
style
;; Especially important for unified (because headers are ambiguous).
(
setq
style
(
cdr
(
assq
(
char-after
)
'
((
?@
.
unified
)
(
?*
.
context
))))))
(
goto-char
(
match-end
0
)))
(
let
((
end
(
and
(
re-search-forward
(
case
style
;; A `unified' header is ambiguous.
(
unified
(
concat
"^[^-+# \\]\\|"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment