<div dir="ltr"><div dir="ltr"><div>I've queued these mostly bases on Jordi's review. Thanks to both of you!</div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 25, 2019 at 8:44 PM Yu Feng <<a href="mailto:rainwoodman@gmail.com">rainwoodman@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">diff --git a/hgext/histedit.py b/hgext/histedit.py<br>
--- a/hgext/histedit.py<br>
+++ b/hgext/histedit.py<br>
@@ -1227,6 +1227,13 @@ def addln(win, y, x, line, color=None):<br>
     else:<br>
         win.addstr(y, x, line)<br>
<br>
+def _trunc_head(line, n):<br>
+    if len(line) <= n: return line<br>
+    return '> ' + line[-(n - 2):]<br>
+def _trunc_tail(line, n):<br>
+    if len(line) <= n: return line<br>
+    return line[:n - 2] + ' >'<br></blockquote><div><br></div><div>test-check-pylint.t points out that the lines should be broken after the colons (please install pylint to run that test in the future). I've added newlines after the colons above in flight this time.</div><div><br></div></div></div></div>