mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Client: manipulate history only if interactive
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user