mirror of
https://github.com/troglobit/editline.git
synced 2025-09-14 23:28:09 +08:00
Remove duplicate unique history check
Signed-off-by: Claus Fischer <claus.fischer@clausfischer.com> Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:

committed by
Joachim Nilsson

parent
ed37cef412
commit
4b8333ad39
@@ -1047,8 +1047,6 @@ static void hist_add(const char *p)
|
||||
if (H.Pos && strcmp(p, H.Lines[H.Pos - 1]) == 0)
|
||||
return;
|
||||
#endif
|
||||
if (H.Size && strcmp(p, H.Lines[H.Size - 1]) == 0)
|
||||
return;
|
||||
|
||||
if ((s = strdup(p)) == NULL)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user