We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5c7c75 commit 4f3ba98Copy full SHA for 4f3ba98
src/shell/history.c
@@ -22,7 +22,7 @@ history_add(const char *line)
22
if (history.latest == NULL) {
23
history.lines[0] = strdup(line);
24
history.latest = history.lines;
25
- } else {
+ } else if (strcmp(line, *history.latest)) {
26
history.latest++;
27
if (history.latest >= &history.lines[MAX_LINES])
28
0 commit comments