mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 12:18:42 +00:00
Client: manipulate history only if interactive
This commit is contained in:
parent
05d47bd53e
commit
31874783c4
@ -157,7 +157,8 @@ history_init(void)
|
||||
void
|
||||
input_init(void)
|
||||
{
|
||||
history_init();
|
||||
if (interactive)
|
||||
history_init();
|
||||
rl_readline_name = "birdc";
|
||||
rl_add_defun("bird-complete", input_complete, '\t');
|
||||
rl_add_defun("bird-help", input_help, '?');
|
||||
@ -235,6 +236,7 @@ cleanup(void)
|
||||
return;
|
||||
|
||||
input_hide();
|
||||
write_history(history_file);
|
||||
if (interactive)
|
||||
write_history(history_file);
|
||||
rl_callback_handler_remove();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user