.. by avoiding end_update() call after last read line.
report("Allocation failure");
end:
report("Allocation failure");
end:
- view->ops->read(view, NULL);
- end_update(view);
+ if (view->ops->read(view, NULL))
+ end_update(view);
enum line_type type;
bool first_read = view->lines == 0;
enum line_type type;
bool first_read = view->lines == 0;
+ if (!text)
+ return TRUE;
if (textlen <= SIZEOF_TREE_ATTR)
return FALSE;
if (textlen <= SIZEOF_TREE_ATTR)
return FALSE;