diff options
author | pommicket <pommicket@gmail.com> | 2025-06-27 12:45:55 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-06-27 12:45:55 -0400 |
commit | adc193b600393a149868b1953c9e2afd576298cb (patch) | |
tree | e228cf0d8ac67752d500188efb7f576ecc6ec0ef /buffer.c | |
parent | 090edb6d2d54cf8290560c4bca3527c003574368 (diff) |
Fix multi-line syntax highlighting being broken on reload
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -3158,6 +3158,7 @@ Status buffer_load_file(TextBuffer *buffer, const char *path) { BufferPos start = buffer_pos_start_of_file(buffer); buffer_insert_utf8_at_pos(buffer, start, (const char *)file_contents); buffer_end_edit_chain(buffer); + nlines = buffer_line_count(buffer); buffer->view_only = prev_view_only; } } |