Skip to content

Commit

Permalink
fix redraw when echo async function which throws #998
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Feb 22, 2025
1 parent d070568 commit 9a8444e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -11283,8 +11283,8 @@
echo_promise = true;
async_echo.push(next);
}
lines.push([value, locals]);
unpromise(next, function() {
lines.push([value, locals]);
// extended commands should be processed only
// once in echo and not on redraw
var have_partial = self.find('.partial').length;
Expand Down
6 changes: 3 additions & 3 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: Sat, 22 Feb 2025 14:31:01 +0000
* Date: Sat, 22 Feb 2025 15:06:30 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -5439,7 +5439,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Sat, 22 Feb 2025 14:31:01 +0000',
date: 'Sat, 22 Feb 2025 15:06:30 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -11283,8 +11283,8 @@
echo_promise = true;
async_echo.push(next);
}
lines.push([value, locals]);
unpromise(next, function() {
lines.push([value, locals]);
// extended commands should be processed only
// once in echo and not on redraw
var have_partial = self.find('.partial').length;
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 9a8444e

Please sign in to comment.