diff options
author | Marvin Borner | 2021-04-21 13:21:46 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-21 13:21:46 +0200 |
commit | f663aed8e0650234dd7b9450cc09e4f8215da41b (patch) | |
tree | 7b77399b12ff9ebf5bc1bd02f3188d24c8d09324 /src/gui.c | |
parent | f6968de6417a5489dc94d2079768f54b3b1163b0 (diff) |
"Fixed" syntax highlighting
Diffstat (limited to 'src/gui.c')
-rw-r--r-- | src/gui.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -141,7 +141,7 @@ static void gui_show_save_dialog(void) int res = gtk_dialog_run(GTK_DIALOG(dialog)); if (res == GTK_RESPONSE_ACCEPT) { char *savefile = gtk_file_chooser_get_filename(chooser); - strncpy(filename, savefile, sizeof(filename)); + strcpy(filename, savefile); g_free(savefile); text = gui_text_buffer(); gtk_widget_destroy(dialog); @@ -267,6 +267,7 @@ static void gui_activate(GtkApplication *app, gpointer data) gui_fill_text_view_from_file("test.asm"); gui_init_highlighter(); + gui_call_syntax_highlighter(); } int gui_init(int argc, char *argv[]) |