Commit 31874783 authored by Jan Moskyto Matejka's avatar Jan Moskyto Matejka
Browse files

Client: manipulate history only if interactive

parent 05d47bd5
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -157,6 +157,7 @@ history_init(void)
void
input_init(void)
{
  if (interactive)
    history_init();
  rl_readline_name = "birdc";
  rl_add_defun("bird-complete", input_complete, '\t');
@@ -235,6 +236,7 @@ cleanup(void)
    return;

  input_hide();
  if (interactive)
    write_history(history_file);
  rl_callback_handler_remove();
}