mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Earlier history in non-interactive mode bugfix contained a new bug causing fish to crash if read is not used in non-interactive mode
darcs-hash:20060419234211-ac50b-886a33e96cb3f95e9b2c632f03eb3b2b20a560fd.gz
This commit is contained in:
parent
d1ff6a323a
commit
9d770af5f4
2 changed files with 5 additions and 0 deletions
|
@ -202,6 +202,10 @@ static void history_to_hash()
|
||||||
{
|
{
|
||||||
history_data *d;
|
history_data *d;
|
||||||
|
|
||||||
|
if( !history_last )
|
||||||
|
return;
|
||||||
|
|
||||||
|
|
||||||
d = (history_data *)hash_get( &history_table,
|
d = (history_data *)hash_get( &history_table,
|
||||||
mode_name );
|
mode_name );
|
||||||
|
|
||||||
|
|
1
main.c
1
main.c
|
@ -61,6 +61,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#include "output.h"
|
#include "output.h"
|
||||||
#include "translate.h"
|
#include "translate.h"
|
||||||
#include "halloc_util.h"
|
#include "halloc_util.h"
|
||||||
|
#include "history.h"
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue