diff options
Diffstat (limited to 'ted.c')
-rw-r--r-- | ted.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -459,7 +459,7 @@ bool ted_new_file(Ted *ted, const char *filename) { strbuf_cpy(path, TED_UNTITLED); if (ted_open_buffer(ted, &buffer_idx, &tab_idx)) { TextBuffer *buffer = &ted->buffers[buffer_idx]; - buffer_new_file(buffer, TED_UNTITLED); + buffer_new_file(buffer, path); if (!buffer_has_error(buffer)) { return true; } else { |