diff options
author | axel <axel@liljencrantz.se> | 2006-04-19 19:55:02 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-04-19 19:55:02 +1000 |
commit | 6996c7718e33b270c9ae952ad3e1cd4b5be80ddd (patch) | |
tree | 50f45ad070d1e65d18d7f7a3535f27995a7d5ddb /reader.c | |
parent | 45d56d8e058895196bf341d8a27fd8003bd831d9 (diff) |
Always init history on startup, to avoid destorying history multiple times when reading interactively in a non-interactive script
darcs-hash:20060419095502-ac50b-abf2fe39cf9c027bdbc69d78fe858e946f7c81f2.gz
Diffstat (limited to 'reader.c')
-rw-r--r-- | reader.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1631,7 +1631,6 @@ static void reader_interactive_init() al_init( &prompt_list ); - history_init(); common_handle_winch(0); @@ -1658,7 +1657,6 @@ static void reader_interactive_destroy() kill_destroy(); al_foreach( &prompt_list, (void (*)(const void *))&free ); al_destroy( &prompt_list ); - history_destroy(); writestr( L"\n" ); set_color( FISH_COLOR_RESET, FISH_COLOR_RESET ); |