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 '<>'.
*/
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;
}
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)
comm2("cb", focus, "<fg:yellow,bg:blue+30>%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)