projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b894521
)
Return after emitting error in tty.js
author
isaacs
<i@izs.me>
Tue, 1 May 2012 22:51:29 +0000
(15:51 -0700)
committer
isaacs
<i@izs.me>
Tue, 1 May 2012 22:51:29 +0000
(15:51 -0700)
lib/tty.js
patch
|
blob
|
history
diff --git
a/lib/tty.js
b/lib/tty.js
index
2d66abc
..
3aedcf4
100644
(file)
--- a/
lib/tty.js
+++ b/
lib/tty.js
@@
-102,6
+102,7
@@
WriteStream.prototype._refreshSize = function() {
var winSize = this._handle.getWindowSize();
if (!winSize) {
this.emit('error', errnoException(errno, 'getWindowSize'));
+ return;
}
var newCols = winSize[0];
var newRows = winSize[1];