HistoryBuf.as_ansi()

This commit is contained in:
Kovid Goyal
2016-12-09 19:39:20 +05:30
parent 471b36832e
commit ae3f555f51
3 changed files with 40 additions and 7 deletions

View File

@@ -345,7 +345,7 @@ delete_lines(LineBuf *self, PyObject *args) {
static PyObject*
as_ansi(LineBuf *self, PyObject *callback) {
#define as_ansi_doc "as_ansi(callback) -> The contents of this buffer ans ANSI escaped text. callback is called with each successive line."
#define as_ansi_doc "as_ansi(callback) -> The contents of this buffer as ANSI escaped text. callback is called with each successive line."
static Py_UCS4 t[5120];
Line l = {.xnum=self->xnum};
for(index_type i = 0; i < self->ynum; i++) {