We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ddee78 + 5e44871 commit 85c6878Copy full SHA for 85c6878
lib/console/console.js
@@ -258,10 +258,16 @@ export default class InkTerminal extends PaneItem {
258
let {cols, rows} = this.fitAddon.proposeDimensions()
259
// slightly narrower terminal looks better:
260
cols -= 1
261
+ if (cols < 1) cols = 1
262
if (this.terminal && !isNaN(cols) && !isNaN(rows)) {
263
this.terminal.resize(cols, rows)
264
if (this.ty && this.ty.resize) {
- this.ty.resize(cols, rows)
265
+ try {
266
+ this.ty.resize(cols, rows)
267
+ } catch (err) {
268
+ // the pty can apparently die before the resize event goes through (https://github.com/JunoLab/atom-julia-client/issues/687)
269
+ console.error(err)
270
+ }
271
}
272
273
0 commit comments