]> git.eshelyaron.com Git - emacs.git/commit
* lisp/vc/diff-mode.el (diff-hunk-text): Test-driven fix for newlines.
authorJuri Linkov <juri@linkov.net>
Wed, 26 May 2021 22:19:36 +0000 (01:19 +0300)
committerJuri Linkov <juri@linkov.net>
Wed, 26 May 2021 22:19:36 +0000 (01:19 +0300)
commit856e0ec2f81bfe2f6721369a1df9a26f41e6d1a4
tree5edc18dc8b78c9528a52b20f1c4161ec2745d634
parent777d784d8fba1191d0f9ca22a336829e3e232668
* lisp/vc/diff-mode.el (diff-hunk-text): Test-driven fix for newlines.

* lisp/vc/diff-mode.el (diff-hunk-text): Fix handling of newlines
to cover all test cases according to new test.

* test/lisp/vc/diff-mode-tests.el (diff-mode-test-hunk-text-no-newline):
New test to cover cases with no newline at end of file.
lisp/vc/diff-mode.el
test/lisp/vc/diff-mode-tests.el