Skip to content

Commit 885cf4e

Browse files
committed
fix blank links when import view #1007
1 parent ca1e69c commit 885cf4e

5 files changed

+8
-13
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* ignore empty command in Pipe extension [#984](https://github.com/jcubic/jquery.terminal/issues/984)
1414
* fix processing Hex HTML entities [#992](https://github.com/jcubic/jquery.terminal/issues/992)
1515
* fix returning Terminal instance from interpreter [#994](https://github.com/jcubic/jquery.terminal/issues/994)
16+
* fix removing blank lines when using `import_view()` [#1007](https://github.com/jcubic/jquery.terminal/issues/1007)
1617

1718
## 2.44.1
1819
### Bugfix

js/jquery.terminal-src.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -9893,10 +9893,7 @@
98939893
if (view.focus) {
98949894
self.focus();
98959895
}
9896-
var cloned_lines = clone(view.lines);
9897-
lines.import(cloned_lines.filter(function(line) {
9898-
return line[0];
9899-
}));
9896+
lines.import(clone(view.lines));
99009897
if (view.interpreters instanceof Stack) {
99019898
interpreters = view.interpreters;
99029899
}

js/jquery.terminal.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
*
4242
* broken image by Sophia Bai from the Noun Project (CC-BY)
4343
*
44-
* Date: Sun, 19 Jan 2025 22:25:51 +0000
44+
* Date: Wed, 22 Jan 2025 14:44:04 +0000
4545
*/
4646
/* global define, Map, BigInt */
4747
/* eslint-disable */
@@ -5436,7 +5436,7 @@
54365436
// -------------------------------------------------------------------------
54375437
$.terminal = {
54385438
version: 'DEV',
5439-
date: 'Sun, 19 Jan 2025 22:25:51 +0000',
5439+
date: 'Wed, 22 Jan 2025 14:44:04 +0000',
54405440
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
54415441
color_names: [
54425442
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
@@ -9893,10 +9893,7 @@
98939893
if (view.focus) {
98949894
self.focus();
98959895
}
9896-
var cloned_lines = clone(view.lines);
9897-
lines.import(cloned_lines.filter(function(line) {
9898-
return line[0];
9899-
}));
9896+
lines.import(clone(view.lines));
99009897
if (view.interpreters instanceof Stack) {
99019898
interpreters = view.interpreters;
99029899
}

js/jquery.terminal.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/jquery.terminal.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)