aboutsummaryrefslogtreecommitdiff
path: root/vis-lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis-lua.c')
-rw-r--r--vis-lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vis-lua.c b/vis-lua.c
index 3a4f0dd..5aff161 100644
--- a/vis-lua.c
+++ b/vis-lua.c
@@ -41,7 +41,7 @@ static void window_status_update(Vis *vis, Win *win) {
int width = vis_window_width_get(win);
enum UiOption options = view_options_get(view);
bool focused = vis->win == win;
- const char *filename = file->name;
+ const char *filename = file_name_get(file);
const char *mode = vis->mode->status;
if (focused && mode)
@@ -1066,7 +1066,7 @@ static int file_index(lua_State *L) {
if (lua_isstring(L, 2)) {
const char *key = lua_tostring(L, 2);
if (strcmp(key, "name") == 0) {
- lua_pushstring(L, file->name);
+ lua_pushstring(L, file_name_get(file));
return 1;
}