Fix action dump_lines_with_attrs

This commit is contained in:
pagedown 2021-12-10 12:22:21 +08:00
parent 2c6d888b3d
commit dedbd14ace
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB

View File

@ -3716,7 +3716,7 @@ dump_lines_with_attrs(Screen *self, PyObject *accum) {
Line *line = range_line_(self, y);
t = PyUnicode_FromFormat("\x1b[31m%d: \x1b[39m", y++);
if (t) {
PyObject_CallFunctionObjArgs(accum, t);
PyObject_CallFunctionObjArgs(accum, t, NULL);
Py_DECREF(t);
}
switch (line->attrs.prompt_kind) {