Skip to content

Commit

Permalink
invalidate cache and update CMD on term::refresh() #699
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Sep 30, 2021
1 parent ad50f83 commit 232d7f1
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,7 @@
### Bugfix
* fix echo raw interfering with echo without newline [#695](https://github.com/jcubic/jquery.terminal/issues/695)
* update hash with proper array if hash is escaped
* invalidate cache and update CMD on `term::refresh()` [#699](https://github.com/jcubic/jquery.terminal/issues/699)

## 2.29.2
### Bugfix
Expand Down
10 changes: 7 additions & 3 deletions js/jquery.terminal-2.29.2.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Mon, 27 Sep 2021 13:41:33 +0000
* Date: Thu, 30 Sep 2021 10:39:07 +0000
*/
/* global define, Map */
/* eslint-disable */
Expand Down Expand Up @@ -5065,7 +5065,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Mon, 27 Sep 2021 13:41:33 +0000',
date: 'Thu, 30 Sep 2021 10:39:07 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -9800,12 +9800,16 @@
return self;
},
// -------------------------------------------------------------
// :: redraw the terminal
// :: redraw the terminal and invalidate cache
// -------------------------------------------------------------
refresh: function() {
if (char_size.width !== 0) {
self[0].style.setProperty('--char-width', char_size.width);
}
self.clear_cache();
if (command) {
command_line.resize();
}
redraw({
scroll: false,
update: true
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal-2.29.2.min.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion js/jquery.terminal-src.js
Expand Up @@ -9800,12 +9800,16 @@
return self;
},
// -------------------------------------------------------------
// :: redraw the terminal
// :: redraw the terminal and invalidate cache
// -------------------------------------------------------------
refresh: function() {
if (char_size.width !== 0) {
self[0].style.setProperty('--char-width', char_size.width);
}
self.clear_cache();
if (command) {
command_line.resize();
}
redraw({
scroll: false,
update: true
Expand Down
10 changes: 7 additions & 3 deletions js/jquery.terminal.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Mon, 27 Sep 2021 13:41:33 +0000
* Date: Thu, 30 Sep 2021 10:39:07 +0000
*/
/* global define, Map */
/* eslint-disable */
Expand Down Expand Up @@ -5065,7 +5065,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Mon, 27 Sep 2021 13:41:33 +0000',
date: 'Thu, 30 Sep 2021 10:39:07 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -9800,12 +9800,16 @@
return self;
},
// -------------------------------------------------------------
// :: redraw the terminal
// :: redraw the terminal and invalidate cache
// -------------------------------------------------------------
refresh: function() {
if (char_size.width !== 0) {
self[0].style.setProperty('--char-width', char_size.width);
}
self.clear_cache();
if (command) {
command_line.resize();
}
redraw({
scroll: false,
update: true
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 232d7f1

Please sign in to comment.