main: resolve to absolute path when adding session to history
This commit is contained in:
parent
c1dc378603
commit
e65d287907
2 changed files with 3 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ module.exports = {
|
|||
if (err || !stats.isFile()) return
|
||||
|
||||
// add session to history
|
||||
sessionlist.unshift(data)
|
||||
sessionlist.unshift(path.resolve(data))
|
||||
// remove doubles from history
|
||||
sessionlist = sessionlist.filter(function(elem, index, self) {
|
||||
return index == self.indexOf(elem)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue