Skip to content

Commit

Permalink
minor: reset error on tput.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Aug 18, 2015
1 parent 5ccc80d commit 05dcd84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tput.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function Tput(options) {
this.extended = options.extended;
this.printf = options.printf;
this.termcap = options.termcap;
this.error = null;

this.terminfoPrefix = options.terminfoPrefix;
this.terminfoFile = options.terminfoFile;
Expand All @@ -64,6 +65,7 @@ function Tput(options) {
}

Tput.prototype.setup = function() {
this.error = null;
try {
if (this.termcap) {
try {
Expand Down

0 comments on commit 05dcd84

Please sign in to comment.