diff --git a/core/button_view.js b/core/button_view.js index 63de435a..8e8d6ebc 100644 --- a/core/button_view.js +++ b/core/button_view.js @@ -14,6 +14,8 @@ function ButtonView(options) { options.cursor = miscUtil.valueWithDefault(options.cursor, 'hide'); TextView.call(this, options); + + this.dimens.width = this.dimens.width || Math.min(10, this.client.term.termWidth - this.position.col); } util.inherits(ButtonView, TextView);