mirror of
https://github.com/ksherlock/mpw.git
synced 2025-08-20 13:28:11 +00:00
debugger - don't add history line if it's identical to previous line
This commit is contained in:
@@ -1307,7 +1307,9 @@ void Shell()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo -- don't add if same as previous command.
|
// don't add if same as previous entry.
|
||||||
|
HIST_ENTRY *he = current_history();
|
||||||
|
if (he == nullptr || strcmp(he->line, cp) != 0)
|
||||||
add_history(cp);
|
add_history(cp);
|
||||||
}
|
}
|
||||||
free(cp);
|
free(cp);
|
||||||
|
Reference in New Issue
Block a user