Skip to content

Commit

Permalink
fix fallback interpreter return value #1008
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 26, 2025
1 parent b6a062a commit 92c8e42
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* 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)
* fix fallback interpreter return value [#1008](https://github.com/jcubic/jquery.terminal/issues/1008)

## 2.44.1
### Bugfix
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -8112,7 +8112,7 @@
completion: type === 'object' ? commands : undefined
});
} else if (is_function(fallback)) {
fallback(user_command, self);
return fallback(user_command, self);
} else if (is_function(settings.onCommandNotFound)) {
settings.onCommandNotFound.call(self, user_command, self);
} else {
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: Wed, 22 Jan 2025 14:44:04 +0000
* Date: Sun, 26 Jan 2025 13:33:38 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -5436,7 +5436,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Wed, 22 Jan 2025 14:44:04 +0000',
date: 'Sun, 26 Jan 2025 13:33:38 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -8112,7 +8112,7 @@
completion: type === 'object' ? commands : undefined
});
} else if (is_function(fallback)) {
fallback(user_command, self);
return fallback(user_command, self);
} else if (is_function(settings.onCommandNotFound)) {
settings.onCommandNotFound.call(self, user_command, self);
} else {
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 92c8e42

Please sign in to comment.