From: NeilBrown Date: Fri, 28 Apr 2023 23:29:20 +0000 (+1000) Subject: Remove any suggestion that num2 is significant for doc:render-line X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=c76d2378d6547d01d07a53281059c83052955747;p=edlib.git Remove any suggestion that num2 is significant for doc:render-line render-line does doesn't use num2, only 'num'. Signed-off-by: NeilBrown --- diff --git a/lib-markup.c b/lib-markup.c index ae990e05..d2328e0e 100644 --- a/lib-markup.c +++ b/lib-markup.c @@ -272,7 +272,7 @@ static int want_vis_newline(struct attr_stack *as) DEF_CMD(render_line) { /* Render the line from 'mark' to the first '\n' or until - * 'num2' chars. + * 'num' chars. * Convert '<' to '<<' and if a char has the 'highlight' attribute, * include that between '<>'. */ @@ -318,7 +318,7 @@ DEF_CMD(render_line) return Efail; if ((attr = pane_mark_attr(focus, m, "markup:func")) != NULL) { /* An alternate function handles this line */ - ret = call_comm(attr, focus, ci->comm2, o, m, NULL, ci->num2, pm); + ret = call_comm(attr, focus, ci->comm2, o, m, NULL, 0, pm); if (ret) return ret; } diff --git a/python/module-notmuch.py b/python/module-notmuch.py index b8ebee7f..79837a3c 100644 --- a/python/module-notmuch.py +++ b/python/module-notmuch.py @@ -3493,7 +3493,7 @@ class notmuch_message_view(edlib.Pane): comm2("cb", focus, mark, 0, "bg:"+bg, 102) return edlib.Efallthrough - def handle_render_line(self, key, focus, num, num2, mark, mark2, comm2, **a): + def handle_render_line(self, key, focus, num, mark, mark2, comm2, **a): "handle:doc:render-line" # If between active quote marks, render a simple marker p = self.vmark_at_or_before(self.qview, mark) @@ -3509,7 +3509,7 @@ class notmuch_message_view(edlib.Pane): comm2("cb", focus, "%d quoted lines%s" % (int(p['quote-length']), eol)) return 1 - def handle_render_line_prev(self, key, focus, num, num2, mark, comm2, **a): + def handle_render_line_prev(self, key, focus, num, mark, comm2, **a): "handle:doc:render-line-prev" # If between active quote marks, move to start first p = self.vmark_at_or_before(self.qview, mark)