changeset 2566:d097d4bb0437 beta

fix strikethrough issues on `No new line at end of file`
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 06 Jul 2012 20:05:31 +0200
parents 79db9abad657
children 5fe0f744bec0
files rhodecode/lib/diffs.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/diffs.py	Fri Jul 06 19:30:16 2012 +0200
+++ b/rhodecode/lib/diffs.py	Fri Jul 06 20:05:31 2012 +0200
@@ -401,7 +401,7 @@
                 try:
                     while 1:
                         line = lineiter.next()
-                        if line['action'] != 'unmod':
+                        if line['action'] not in ['unmod', 'context']:
                             nextline = lineiter.next()
                             if nextline['action'] in ['unmod', 'context'] or \
                                nextline['action'] == line['action']: