Don't put remote command into command history.
authorDaniel Carl <danielcarl@gmx.de>
Thu, 4 Dec 2014 22:16:44 +0000 (23:16 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Thu, 4 Dec 2014 22:16:44 +0000 (23:16 +0100)
src/io.c

index c1095aa..5fbfc29 100644 (file)
--- a/src/io.c
+++ b/src/io.c
@@ -101,9 +101,15 @@ static gboolean fifo_watch(GIOChannel *gio, GIOCondition condition)
         g_error_free(err);
     }
 
+    /* don't recore remote commands in history */
+    vb.state.enable_history = false;
+
     map_handle_string(line, true);
     g_free(line);
 
+    /* reenable history recording */
+    vb.state.enable_history = true;
+
     return true;
 }