Better fix of "copy all" on Terminal tab

See also #2392
This commit is contained in:
Gina Häußge committed 2018-02-08 12:36:31 +01:00
1 parent b79f669351
commit f35fe32a92
1 file changed
+9 -1
@@ -306,7 +306,15 @@ $(function() {
};
self.copyAll = function() {
copyToClipboard(_.map(self.log(), "line").join("\n"));
var lines;
if (self.fancyFunctionality()) {
lines = _.map(self.log(), "line");
} else {
lines = self.plainLogLines();
}
copyToClipboard(lines.join("\n"));
};
// command matching regex