minor fixes & stacktrace folding in terminal
This commit is contained in:
parent
f58db44858
commit
c4559315f7
11 changed files with 56 additions and 17 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue