diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-05-26 18:28:41 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-05-26 19:28:41 +0200 |
| commit | 3032669cd9bf8d2a564f9eb37bc9a58bbb317314 (patch) | |
| tree | 511b229fa6ca73ee3d688665203d100ec2a8b4d6 /vis-lua.c | |
| parent | a338f4fd81a00c14f416f4bfa004583e5ede18c5 (diff) | |
| download | vis-3032669cd9bf8d2a564f9eb37bc9a58bbb317314.tar.gz vis-3032669cd9bf8d2a564f9eb37bc9a58bbb317314.tar.xz | |
vis: use normalized absolute file names as internal representation
Try to display a shorthand version in the status bar, this currently
only works for files below the current working directory of the editor
process.
Diffstat (limited to 'vis-lua.c')
| -rw-r--r-- | vis-lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |
