mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 04:21:24 +08:00
Merge branch 'abitmore-patch-1'
This commit is contained in:
commit
385cd77e9b
@ -1130,7 +1130,7 @@ static void hist_add(const char *p)
|
||||
char *s;
|
||||
|
||||
#ifdef CONFIG_UNIQUE_HISTORY
|
||||
if (H.Pos && strcmp(p, H.Lines[H.Pos - 1]) == 0)
|
||||
if (H.Size && strcmp(p, H.Lines[H.Size - 1]) == 0)
|
||||
return;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user