Fixed none remove file for editor command.
authorDaniel Carl <danielcarl@gmx.de>
Sat, 2 Nov 2013 17:41:37 +0000 (18:41 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 2 Nov 2013 17:47:20 +0000 (18:47 +0100)
src/input.c
src/map.c

index 5f46947..d4d40ec 100644 (file)
@@ -18,6 +18,7 @@
  */
 
 #include "config.h"
+#include <glib/gstdio.h>
 #include "mode.h"
 #include "main.h"
 #include "input.h"
@@ -146,6 +147,7 @@ static void resume_editor(GPid pid, int status, EditorData *data)
     }
     dom_editable_element_set_disable(data->element, false);
 
+    g_unlink(data->file);
     g_free(data->file);
     g_free(data);
     g_spawn_close_pid(pid);
index fe67a57..bd6ea2a 100644 (file)
--- a/src/map.c
+++ b/src/map.c
@@ -159,7 +159,7 @@ gboolean map_keypress(GtkWidget *widget, GdkEventKey* event, gpointer data)
 }
 
 /**
- * Added the given key sequence ot the key queue and precesses the mapping of
+ * Added the given key sequence to the key queue and process the mapping of
  * chars. The key sequence do not need to be NUL terminated.
  * Keylen of 0 signalized a key timeout.
  */