Skip to content

Commit

Permalink
fix error on multiple echo #878
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 31, 2024
1 parent 8f34ed8 commit d3bcec8
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 10 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Expand Up @@ -6,13 +6,14 @@
* add `--line-thickness` CSS variable to cursor animation
* improve performance with long typing animations [#820](https://github.com/jcubic/jquery.terminal/issues/820)
### Bugfix
* fix \t characters in ascii_table [#902](https://github.com/jcubic/jquery.terminal/issues/902)
* fix `\t` characters in ascii_table [#902](https://github.com/jcubic/jquery.terminal/issues/902)
* fix race condition in refresh and flush [#897](https://github.com/jcubic/jquery.terminal/issues/897)
* always execute function prompt after login [#898](https://github.com/jcubic/jquery.terminal/issues/898)
* fix background color in prompt [#906](https://github.com/jcubic/jquery.terminal/issues/906)
* update prism code to match function Prism.highlight [#905](https://github.com/jcubic/jquery.terminal/issues/905)
* fix keepWords during typing animation [#867](https://github.com/jcubic/jquery.terminal/issues/867)
* fix leading spaces during animation [#825](https://github.com/jcubic/jquery.terminal/issues/825)
* fix edge case of of multiple echo with `newline: false` [#878](https://github.com/jcubic/jquery.terminal/issues/878)

## 2.37.2
### Bugfix
Expand Down
7 changes: 5 additions & 2 deletions js/jquery.terminal-2.37.2.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Sat, 30 Dec 2023 19:15:48 +0000
* Date: Wed, 31 Jan 2024 13:30:30 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -1709,6 +1709,9 @@
};
// -------------------------------------------------------------------------
OutputLines.prototype.get_partial = function() {
if (!this._snapshot.length) {
return [];
}
var last = this._snapshot[this._snapshot.length - 1];
return last;
};
Expand Down Expand Up @@ -5283,7 +5286,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Sat, 30 Dec 2023 19:15:48 +0000',
date: 'Wed, 31 Jan 2024 13:30:30 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal-2.37.2.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions js/jquery.terminal-src.js
Expand Up @@ -1709,6 +1709,9 @@
};
// -------------------------------------------------------------------------
OutputLines.prototype.get_partial = function() {
if (!this._snapshot.length) {
return [];
}
var last = this._snapshot[this._snapshot.length - 1];
return last;
};
Expand Down
7 changes: 5 additions & 2 deletions js/jquery.terminal.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Sat, 30 Dec 2023 19:15:48 +0000
* Date: Wed, 31 Jan 2024 13:30:30 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -1709,6 +1709,9 @@
};
// -------------------------------------------------------------------------
OutputLines.prototype.get_partial = function() {
if (!this._snapshot.length) {
return [];
}
var last = this._snapshot[this._snapshot.length - 1];
return last;
};
Expand Down Expand Up @@ -5283,7 +5286,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Sat, 30 Dec 2023 19:15:48 +0000',
date: 'Wed, 31 Jan 2024 13:30:30 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
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 d3bcec8

Please sign in to comment.