summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
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);