Write the strvis()'d string out to the history file in history_save(),

not the original string. Fixes the bug where every second line of a
history file was empty.
This commit is contained in:
Tim J. Robbins 2002-10-14 10:42:38 +00:00
parent 0921c98b22
commit 3a0e6ca553
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105095

View File

@ -654,7 +654,7 @@ history_save(History *h, const char *fname)
ptr = h_realloc(ptr, max_size);
}
(void) strvis(ptr, ev.str, VIS_WHITE);
(void) fprintf(fp, "%s\n", ev.str);
(void) fprintf(fp, "%s\n", ptr);
}
h_free(ptr);
(void) fclose(fp);