more indentation fixes and one more cosmetic fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2509 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
546f5b3d8a
commit
066713e87e
10
src/files.c
10
src/files.c
|
@ -2891,14 +2891,14 @@ void load_history(void)
|
||||||
|
|
||||||
bool writehist(FILE *hist, historyheadtype *histhead)
|
bool writehist(FILE *hist, historyheadtype *histhead)
|
||||||
{
|
{
|
||||||
historytype *h;
|
historytype *p;
|
||||||
|
|
||||||
/* Write oldest history first. */
|
/* Write oldest history first. */
|
||||||
for (h = histhead->tail; h->prev != NULL; h = h->prev) {
|
for (p = histhead->tail; p->prev != NULL; p = p->prev) {
|
||||||
size_t len = strlen(h->data);
|
size_t p_len = strlen(p->data);
|
||||||
|
|
||||||
sunder(h->data);
|
sunder(p->data);
|
||||||
if (fwrite(h->data, sizeof(char), len, hist) < len ||
|
if (fwrite(p->data, sizeof(char), p_len, hist) < p_len ||
|
||||||
putc('\n', hist) == EOF)
|
putc('\n', hist) == EOF)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue