Skip to content

Commit 92c8e42

Browse files
committed
fix fallback interpreter return value #1008
1 parent b6a062a commit 92c8e42

5 files changed

+8
-7
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
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)
1616
* fix removing blank lines when using `import_view()` [#1007](https://github.com/jcubic/jquery.terminal/issues/1007)
17+
* fix fallback interpreter return value [#1008](https://github.com/jcubic/jquery.terminal/issues/1008)
1718

1819
## 2.44.1
1920
### Bugfix

js/jquery.terminal-src.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8112,7 +8112,7 @@
81128112
completion: type === 'object' ? commands : undefined
81138113
});
81148114
} else if (is_function(fallback)) {
8115-
fallback(user_command, self);
8115+
return fallback(user_command, self);
81168116
} else if (is_function(settings.onCommandNotFound)) {
81178117
settings.onCommandNotFound.call(self, user_command, self);
81188118
} else {

js/jquery.terminal.js

+3-3
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: Wed, 22 Jan 2025 14:44:04 +0000
44+
* Date: Sun, 26 Jan 2025 13:33:38 +0000
4545
*/
4646
/* global define, Map, BigInt */
4747
/* eslint-disable */
@@ -5436,7 +5436,7 @@
54365436
// -------------------------------------------------------------------------
54375437
$.terminal = {
54385438
version: 'DEV',
5439-
date: 'Wed, 22 Jan 2025 14:44:04 +0000',
5439+
date: 'Sun, 26 Jan 2025 13:33:38 +0000',
54405440
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
54415441
color_names: [
54425442
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
@@ -8112,7 +8112,7 @@
81128112
completion: type === 'object' ? commands : undefined
81138113
});
81148114
} else if (is_function(fallback)) {
8115-
fallback(user_command, self);
8115+
return fallback(user_command, self);
81168116
} else if (is_function(settings.onCommandNotFound)) {
81178117
settings.onCommandNotFound.call(self, user_command, self);
81188118
} else {

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)