mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-31 16:57:10 +00:00
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:
parent
0921c98b22
commit
3a0e6ca553
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105095
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user