28 lines
875 B
Diff
28 lines
875 B
Diff
From 12beeabf52074f1061d8c12f0a1b57a743510b17 Mon Sep 17 00:00:00 2001
|
|
From: Chet Ramey <chet.ramey@case.edu>
|
|
Date: Tue, 12 Jun 2018 10:37:19 -0400
|
|
Subject: commit bash-20180608 snapshot
|
|
|
|
---
|
|
lib/readline/histfile.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
(limited to 'lib/readline/histfile.c')
|
|
|
|
diff --git a/lib/readline/histfile.c b/lib/readline/histfile.c
|
|
index 399bcc39..dc64bde1 100644
|
|
--- a/lib/readline/histfile.c
|
|
+++ b/lib/readline/histfile.c
|
|
@@ -396,7 +396,7 @@ read_history_range (const char *filename, int from, int to)
|
|
{
|
|
if (HIST_TIMESTAMP_START(line_start) == 0)
|
|
{
|
|
- if (last_ts == NULL && history_multiline_entries)
|
|
+ if (last_ts == NULL && history_length > 0 && history_multiline_entries)
|
|
_hs_append_history_line (history_length - 1, line_start);
|
|
else
|
|
add_history (line_start);
|
|
--
|
|
cgit v1.2.1
|
|
|