kopia lustrzana https://github.com/c9/core
Stricter failure condition
rodzic
d233a25a76
commit
107f84cc3a
|
@ -325,11 +325,11 @@ define(function(require, exports, module) {
|
||||||
var toChars = target === nonPredictTerminal ? nonPredictChars : predictChars;
|
var toChars = target === nonPredictTerminal ? nonPredictChars : predictChars;
|
||||||
|
|
||||||
if (!predictChars) { // terminal likely just refreshed, never mind copying to it
|
if (!predictChars) { // terminal likely just refreshed, never mind copying to it
|
||||||
state = STATE_WAIT_FOR_PROMPT_OR_ECHO;
|
state = STATE_WAIT_FOR_PROMPT;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!fromChars || !toChars) {
|
if (!fromChars || !toChars) {
|
||||||
state = STATE_WAIT_FOR_PROMPT_OR_ECHO;
|
state = STATE_WAIT_FOR_PROMPT;
|
||||||
errorHandler.reportError(new Error("Warning: can't copy terminal line: "), {
|
errorHandler.reportError(new Error("Warning: can't copy terminal line: "), {
|
||||||
fromChars: fromChars, toChars: toChars
|
fromChars: fromChars, toChars: toChars
|
||||||
});
|
});
|
||||||
|
|
Ładowanie…
Reference in New Issue