Skip to content

Commit

Permalink
fix blank links when import view #1007
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 22, 2025
1 parent ca1e69c commit 885cf4e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* ignore empty command in Pipe extension [#984](https://github.com/jcubic/jquery.terminal/issues/984)
* fix processing Hex HTML entities [#992](https://github.com/jcubic/jquery.terminal/issues/992)
* fix returning Terminal instance from interpreter [#994](https://github.com/jcubic/jquery.terminal/issues/994)
* fix removing blank lines when using `import_view()` [#1007](https://github.com/jcubic/jquery.terminal/issues/1007)

## 2.44.1
### Bugfix
Expand Down
5 changes: 1 addition & 4 deletions js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -9893,10 +9893,7 @@
if (view.focus) {
self.focus();
}
var cloned_lines = clone(view.lines);
lines.import(cloned_lines.filter(function(line) {
return line[0];
}));
lines.import(clone(view.lines));
if (view.interpreters instanceof Stack) {
interpreters = view.interpreters;
}
Expand Down
9 changes: 3 additions & 6 deletions js/jquery.terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Sun, 19 Jan 2025 22:25:51 +0000
* Date: Wed, 22 Jan 2025 14:44:04 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -5436,7 +5436,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Sun, 19 Jan 2025 22:25:51 +0000',
date: 'Wed, 22 Jan 2025 14:44:04 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -9893,10 +9893,7 @@
if (view.focus) {
self.focus();
}
var cloned_lines = clone(view.lines);
lines.import(cloned_lines.filter(function(line) {
return line[0];
}));
lines.import(clone(view.lines));
if (view.interpreters instanceof Stack) {
interpreters = view.interpreters;
}
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.terminal.min.js.map

Large diffs are not rendered by default.

0 comments on commit 885cf4e

Please sign in to comment.