Skip to content

Commit

Permalink
ignore empty command in Pipe extension #984
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Nov 16, 2024
1 parent 61a2d5c commit dd5f826
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Bugfix
* fix `terminal::login()` when user already authenticated [#980](https://github.com/jcubic/jquery.terminal/issues/980)
* improve mobile support
* ignore empty command in Pipe extension [#984](https://github.com/jcubic/jquery.terminal/issues/984)

## 2.44.1
### Bugfix
Expand Down
2 changes: 1 addition & 1 deletion js/pipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@
});
} else if (is_function(term_settings.onCommandNotFound)) {
term_settings.onCommandNotFound.call(term, command, term);
} else {
} else if (cmd) {
error(sprintf(strings(term).commandNotFound, cmd.name));
}
} else {
Expand Down

0 comments on commit dd5f826

Please sign in to comment.