Commit 8b483c10 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

history: don't bother encoding search items -- they cannot contain newlines

No related merge requests found
Showing with 0 additions and 3 deletions
+0 -3
......@@ -2966,7 +2966,6 @@ void load_history(void)
if (read > 0 && line[read - 1] == '\n')
line[--read] = '\0';
if (read > 0) {
unsunder(line, read);
update_history(history, line);
} else
history = &replace_history;
......@@ -2992,8 +2991,6 @@ bool writehist(FILE *hist, filestruct *h)
for (p = h; p != NULL; p = p->next) {
size_t p_len = strlen(p->data);
sunder(p->data);
if (fwrite(p->data, sizeof(char), p_len, hist) < p_len ||
putc('\n', hist) == EOF)
return FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment