diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-26 11:47:47 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-26 11:47:47 -0500 |
commit | a63ae9425561f3d2197c5d220be89fe92900adec (patch) | |
tree | 93665626fc2efa8a6227fb9ed46a8f3b64cc2aac /buffer.c | |
parent | d453eedc5282074af83375532e8edcb68ada3300 (diff) |
fixed some menu-related bugs
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -61,7 +61,10 @@ char const *buffer_get_filename(TextBuffer *buffer) { } bool buffer_is_untitled(TextBuffer *buffer) { - return streq(buffer->filename, TED_UNTITLED); + if (buffer->filename) + return streq(buffer->filename, TED_UNTITLED); + else + return false; } // add this edit to the undo history |