Skip to content

Commit

Permalink
fix brackets in prompt that are not formatting #648
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Feb 25, 2021
1 parent a6b0ba7 commit a52aeae
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions js/jquery.terminal-2.22.0.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: Thu, 25 Feb 2021 16:23:40 +0000
* Date: Thu, 25 Feb 2021 16:51:45 +0000
*/
/* global define, Map */
/* eslint-disable */
Expand Down Expand Up @@ -3079,13 +3079,13 @@
last_rendered_prompt = prompt;
var lines = $.terminal.split_equal(prompt, num_chars).map(function(line) {
if (!$.terminal.have_formatting(line)) {
return '[[;;]' + line + ']';
return '[[;;]' + $.terminal.escape_brackets(line) + ']';
}
return $.terminal.format_split(line).map(function(str) {
if ($.terminal.is_formatting(str)) {
return str;
}
return '[[;;]' + str + ']';
return '[[;;]' + $.terminal.escape_brackets(str) + ']';
}).join('');
});
var options = {
Expand Down Expand Up @@ -4770,7 +4770,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Thu, 25 Feb 2021 16:23:40 +0000',
date: 'Thu, 25 Feb 2021 16:51:45 +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-2.22.0.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -3079,13 +3079,13 @@
last_rendered_prompt = prompt;
var lines = $.terminal.split_equal(prompt, num_chars).map(function(line) {
if (!$.terminal.have_formatting(line)) {
return '[[;;]' + line + ']';
return '[[;;]' + $.terminal.escape_brackets(line) + ']';
}
return $.terminal.format_split(line).map(function(str) {
if ($.terminal.is_formatting(str)) {
return str;
}
return '[[;;]' + str + ']';
return '[[;;]' + $.terminal.escape_brackets(str) + ']';
}).join('');
});
var options = {
Expand Down
8 changes: 4 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: Thu, 25 Feb 2021 16:23:40 +0000
* Date: Thu, 25 Feb 2021 16:51:45 +0000
*/
/* global define, Map */
/* eslint-disable */
Expand Down Expand Up @@ -3079,13 +3079,13 @@
last_rendered_prompt = prompt;
var lines = $.terminal.split_equal(prompt, num_chars).map(function(line) {
if (!$.terminal.have_formatting(line)) {
return '[[;;]' + line + ']';
return '[[;;]' + $.terminal.escape_brackets(line) + ']';
}
return $.terminal.format_split(line).map(function(str) {
if ($.terminal.is_formatting(str)) {
return str;
}
return '[[;;]' + str + ']';
return '[[;;]' + $.terminal.escape_brackets(str) + ']';
}).join('');
});
var options = {
Expand Down Expand Up @@ -4770,7 +4770,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Thu, 25 Feb 2021 16:23:40 +0000',
date: 'Thu, 25 Feb 2021 16:51:45 +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 a52aeae

Please sign in to comment.