diff options
| author | WormHeamer | 2026-01-02 03:01:17 -0500 |
|---|---|---|
| committer | WormHeamer | 2026-01-02 03:01:17 -0500 |
| commit | 43eb07f9ab85ed797da749701c4dcc2f0f8c6868 (patch) | |
| tree | 670a1e4f3ceb673022df7832b0c289c5750fca78 /main.c | |
| parent | 07b3782804272abce9ada300e96fa141e359b359 (diff) | |
make binary file buffers not writeable
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -174,7 +174,7 @@ Str str_printf(Arena *a, const char *fmt, ...) { int ed_buf_save(Editor *e, u32 i) { EditBuf *b = &e->buf[i]; - if (b->type == ED_BUF_FILE || b->type == ED_BUF_BIN_FILE) { + if (b->type == ED_BUF_FILE) { e->msg = str_printf(&e->scratch, "%.02fk written", b->txt->len / 1024.0); return txt_save(b->txt, str_to_cstr(b->path, &e->scratch)); } else { |
