aboutsummaryrefslogtreecommitdiff
path: root/editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'editor.c')
-rw-r--r--editor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor.c b/editor.c
index ad3da53..b3fd1de 100644
--- a/editor.c
+++ b/editor.c
@@ -86,7 +86,7 @@ static void editor_windows_arrange_vertical(Editor *ed) {
}
bool editor_window_reload(EditorWin *win) {
- const char *filename = text_filename(win->text);
+ const char *filename = text_filename_get(win->text);
/* can't reload unsaved file */
if (!filename)
return false;
@@ -114,7 +114,7 @@ static void editor_window_split_internal(Editor *ed, const char *filename) {
// TODO? move this to editor_window_new
sel = NULL;
for (EditorWin *w = ed->windows; w; w = w->next) {
- const char *f = text_filename(w->text);
+ const char *f = text_filename_get(w->text);
if (f && strcmp(f, filename) == 0) {
sel = w;
break;