summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-12 10:33:11 -0300
committerpommicket <pommicket@gmail.com>2023-08-12 10:33:11 -0300
commita974b6192479e5f7f6d6fcc328313c76290f486d (patch)
tree01ec86dcbc22c94e43936efbda6673c19ed8a5e0 /node.c
parentcca844b42a6303282e7536c8834b74ff56140cbf (diff)
internalize buffer - broke some stuff
Diffstat (limited to 'node.c')
-rw-r--r--node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.c b/node.c
index ccd9936..ae46a33 100644
--- a/node.c
+++ b/node.c
@@ -310,7 +310,7 @@ void node_frame(Ted *ted, Node *node, Rect r) {
{
if (buffer_unsaved_changes(buffer))
strbuf_printf(tab_title, "*%s*", filename);
- else if (buffer->view_only)
+ else if (buffer_is_view_only(buffer))
strbuf_printf(tab_title, "VIEW %s", filename);
else
strbuf_printf(tab_title, "%s", filename);