Skip to content

Commit

Permalink
Fix "Multiselect repeated in terminal" (#253)
Browse files Browse the repository at this point in the history
* Update sisteransi to 1.0.4

* Use sisteransi lines function to clear lines

Fixes #175
  • Loading branch information
jamezrin committed Feb 14, 2020
1 parent 9b14789 commit a5b4789
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/util/clear.js
Expand Up @@ -14,5 +14,5 @@ module.exports = function(prompt, perLine = process.stdout.columns) {
rows += 1 + Math.floor(Math.max(width(line) - 1, 0) / perLine);
}

return (erase.line + cursor.prevLine()).repeat(rows - 1) + erase.line + cursor.to(0);
return erase.lines(rows);
};
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -37,7 +37,7 @@
],
"dependencies": {
"kleur": "^3.0.3",
"sisteransi": "^1.0.3"
"sisteransi": "^1.0.4"
},
"devDependencies": {
"@babel/cli": "^7.5.5",
Expand Down

0 comments on commit a5b4789

Please sign in to comment.