General bug fixes

This commit is contained in:
Nathan Byrd 2022-01-28 10:33:04 -06:00
parent 1bc9830202
commit 10c9ea9554
4 changed files with 19 additions and 65 deletions

View file

@ -154,7 +154,7 @@ View.prototype.setHeight = function(height) {
View.prototype.setWidth = function(width) {
width = parseInt(width) || 1;
width = Math.min(width, this.client.term.termWidth);
width = Math.min(width, this.client.term.termWidth - this.position.col);
this.dimens.width = width;
};