aboutsummaryrefslogtreecommitdiff
path: root/src/gui.c
diff options
context:
space:
mode:
authorMarvin Borner2021-04-21 13:21:46 +0200
committerMarvin Borner2021-04-21 13:21:46 +0200
commitf663aed8e0650234dd7b9450cc09e4f8215da41b (patch)
tree7b77399b12ff9ebf5bc1bd02f3188d24c8d09324 /src/gui.c
parentf6968de6417a5489dc94d2079768f54b3b1163b0 (diff)
"Fixed" syntax highlighting
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui.c b/src/gui.c
index eadcb91..3288827 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -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[])