Get rid of bits from LineAttrs

This commit is contained in:
Kovid Goyal
2021-07-31 12:36:04 +05:30
parent 780e526143
commit b260a61c8f
6 changed files with 57 additions and 57 deletions

View File

@@ -374,7 +374,7 @@ as_ansi(Line* self, PyObject *a UNUSED) {
static PyObject*
is_continued(Line* self, PyObject *a UNUSED) {
#define is_continued_doc "Return the line's continued flag"
PyObject *ans = self->attrs.bits.continued ? Py_True : Py_False;
PyObject *ans = self->attrs.continued ? Py_True : Py_False;
Py_INCREF(ans);
return ans;
}
@@ -802,7 +802,7 @@ as_text_generic(PyObject *args, void *container, get_line_func get_line, index_t
ansibuf->active_hyperlink_id = 0;
for (index_type y = 0; y < lines; y++) {
Line *line = get_line(container, y);
if (!line->attrs.bits.continued && y > 0) {
if (!line->attrs.continued && y > 0) {
ret = PyObject_CallFunctionObjArgs(callback, nl, NULL);
if (ret == NULL) goto end;
Py_CLEAR(ret);