[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11894: 24.1.50; [PATCH] diff-apply-hunk can be off by 1 line when th
bug#11894: 24.1.50; [PATCH] diff-apply-hunk can be off by 1 line when the hunk is 0-context pure removal
Wed, 18 Jul 2012 15:28:12 +0200
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)
Stefan Monnier <address@hidden> writes:
> This looks like a bug in those versions of diff (not that I know
> a non-buggy version, tho).
Maybe, but that's how POSIX wants it:
The ending line number of an empty range shall be the number of the
preceding line, or 0 if the range is at the start of the file.
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."