minor fixes & stacktrace folding in terminal

This commit is contained in:
bordun 2020-03-13 16:28:43 +01:00
parent f58db44858
commit c4559315f7
11 changed files with 56 additions and 17 deletions

View file

@ -59,9 +59,12 @@ module.exports = {
// add session to history
recentSessions.unshift(path.resolve(data))
// remove doubles from history
recentSessions = recentSessions.reverse()
recentSessions = recentSessions.filter(function(elem, index, self) {
return index == self.indexOf(elem)
})
recentSessions = recentSessions.reverse()
// history size limit
if (recentSessions.length > 10) recentSessions = recentSessions.slice(0, 10)