Skip to content

Commit

Permalink
fix major issue when wcwidth is included
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Mar 14, 2020
1 parent 1b16a23 commit 1b7f02a
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 18 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* fix vertical bar cursor animation on empty command line
* fix edge case while splitting the command line with formatting (better fix for [#379](https://github.com/jcubic/jquery.terminal/379))
* fix option parser when using minus or double minus as argument
* fix major issue when wcwidth is added and there are no wide characters

## 2.14.1
### Bugfix
Expand Down
7 changes: 2 additions & 5 deletions js/jquery.terminal-2.14.1.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: Sat, 14 Mar 2020 15:55:16 +0000
* Date: Sat, 14 Mar 2020 16:37:49 +0000
*/
/* global define, Map */
/* eslint-disable */
Expand Down Expand Up @@ -3967,9 +3967,6 @@
}];
}, []);
return specs.map(function(spec) {
if (spec.len === 1) {
return spec.chr;
}
var style = char_width_prop(spec.sum, options);
if (spec.sum === chars.length || !style.length) {
return '<span>' + make_string(spec) + '</span>';
Expand Down Expand Up @@ -4280,7 +4277,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Sat, 14 Mar 2020 15:55:16 +0000',
date: 'Sat, 14 Mar 2020 16:37:49 +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.14.1.min.js

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -3967,9 +3967,6 @@
}];
}, []);
return specs.map(function(spec) {
if (spec.len === 1) {
return spec.chr;
}
var style = char_width_prop(spec.sum, options);
if (spec.sum === chars.length || !style.length) {
return '<span>' + make_string(spec) + '</span>';
Expand Down
7 changes: 2 additions & 5 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: Sat, 14 Mar 2020 15:55:16 +0000
* Date: Sat, 14 Mar 2020 16:37:49 +0000
*/
/* global define, Map */
/* eslint-disable */
Expand Down Expand Up @@ -3967,9 +3967,6 @@
}];
}, []);
return specs.map(function(spec) {
if (spec.len === 1) {
return spec.chr;
}
var style = char_width_prop(spec.sum, options);
if (spec.sum === chars.length || !style.length) {
return '<span>' + make_string(spec) + '</span>';
Expand Down Expand Up @@ -4280,7 +4277,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Sat, 14 Mar 2020 15:55:16 +0000',
date: 'Sat, 14 Mar 2020 16:37:49 +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 1b7f02a

Please sign in to comment.