diff --git a/lib/tput.js b/lib/tput.js index aab01fb..c0dc779 100644 --- a/lib/tput.js +++ b/lib/tput.js @@ -1262,7 +1262,7 @@ Tput.prototype.parseTermcap = function(data, file) { name: names[0], names: names, desc: names.pop(), - file: ~file[0].indexOf(path.sep) + file: ~file.indexOf(path.sep) ? path.resolve(file) : file, termcap: true