mirror of
https://github.com/troglobit/editline.git
synced 2025-05-05 20:11:12 +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:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user