Cleanup the as_text_generic macro

Also allow adding a \r at the end of each visual line
This commit is contained in:
Kovid Goyal
2018-05-18 23:06:06 +05:30
parent 2a713cab60
commit bb06bfa627
4 changed files with 15 additions and 9 deletions

View File

@@ -414,7 +414,7 @@ get_line(LineBuf *self, index_type y) {
static PyObject*
as_text(LineBuf *self, PyObject *args) {
as_text_generic(args, self, get_line, self->ynum, self->xnum, callback, as_ansi);
as_text_generic(args, self, get_line, self->ynum, self->xnum);
}