by
Changes to 4 files · Browse files at 80b6b46e7bb7 Showing diff from parent 1445e887b24d a88261eec1f4 Diff from another changeset...
@@ -18,7 +18,7 @@ def __init__(self, cmdline, progressbar=True, width=520, height=400):
title = 'hg ' + ' '.join(cmdline[1:])
if len(title) > 80:
- title = toutf(title[:80] + '...')
+ title = title[:80] + '...'
title = toutf(title.replace('\n', ' '))
gtk.Dialog.__init__(self,
title=title,
|
@@ -906,7 +906,7 @@ lines = chunk.readlines()
lines[-1] = lines[-1].strip('\n\r')
for line in lines:
- line = gobject.markup_escape_text(toutf(line))
+ line = gobject.markup_escape_text(toutf(line[:128]))
if line.startswith('---') or line.startswith('+++'):
hunk += '<span foreground="#000090">%s</span>' % line
elif line.startswith('-'):
@@ -925,7 +925,7 @@ lines = fp.readlines()
lines[-1] = lines[-1].strip('\n\r')
for line in lines:
- hunk += gobject.markup_escape_text(toutf(line))
+ hunk += gobject.markup_escape_text(toutf(line[:128]))
return hunk
def dohgdiff():
|
Loading...