From 8b483c10baca5ff6dd4a0e43ad85a0f737465365 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg <bensberg@justemail.net> Date: Sun, 18 Dec 2016 17:42:39 +0100 Subject: [PATCH] history: don't bother encoding search items -- they cannot contain newlines --- src/files.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/files.c b/src/files.c index 2be75041..95a0db90 100644 --- a/src/files.c +++ b/src/files.c @@ -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; -- GitLab