Skip to content

Commit

Permalink
fix command prop in export_view() when in command #967
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Sep 22, 2024
1 parent b43e61b commit 598b19f
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 13 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
### Bugfix
* fix number of rows when using different `--size` [#969](https://github.com/jcubic/jquery.terminal/issues/969)
* fix hidden cursor when using command that change `--size` [#968](https://github.com/jcubic/jquery.terminal/issues/968)
* fix command prop in `export_view()` when in command [#967](https://github.com/jcubic/jquery.terminal/issues/967)

## 2.43.2
### Bugfix
Expand Down
2 changes: 1 addition & 1 deletion css/emoji.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/jquery.terminal.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Copyright (c) 2011-2024 Jakub T. Jankiewicz <https://jcubic.pl/me>
* Released under the MIT license
*
* Date: Sat, 21 Sep 2024 22:04:00 +0000
* Date: Sun, 22 Sep 2024 10:44:35 +0000
*/
.terminal .terminal-output .format, .cmd .format,
.cmd-prompt, .cmd-prompt div {
Expand Down
2 changes: 1 addition & 1 deletion css/jquery.terminal.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/jquery.terminal.min.css.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -2384,6 +2384,9 @@
}
history.reset();

self.set('');
clip.val('');

// for next input event on firefox/android with google keyboard
prev_command = '';
no_keydown = true;
Expand All @@ -2401,8 +2404,6 @@
draw_prompt();
}
}
self.set('');
clip.val('');
if (!is_mobile) {
clip.$node.focus();
}
Expand Down
9 changes: 5 additions & 4 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: Sun, 22 Sep 2024 10:44:34 +0000
* Date: Sun, 22 Sep 2024 11:01:40 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -2384,6 +2384,9 @@
}
history.reset();

self.set('');
clip.val('');

// for next input event on firefox/android with google keyboard
prev_command = '';
no_keydown = true;
Expand All @@ -2401,8 +2404,6 @@
draw_prompt();
}
}
self.set('');
clip.val('');
if (!is_mobile) {
clip.$node.focus();
}
Expand Down Expand Up @@ -5323,7 +5324,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Sun, 22 Sep 2024 10:44:34 +0000',
date: 'Sun, 22 Sep 2024 11:01:40 +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 598b19f

Please sign in to comment.