Skip to content

Commit

Permalink
fix jump to the end of the command #814
Browse files Browse the repository at this point in the history
Fix clicking after the command that should jump to the end
  • Loading branch information
jcubic committed Sep 11, 2022
1 parent 2877d1e commit 8f6a33b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
5 changes: 3 additions & 2 deletions js/jquery.terminal-2.34.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, 08 Sep 2022 18:52:13 +0000
* Date: Sun, 11 Sep 2022 15:54:30 +0000
*/
/* global define, Map */
/* eslint-disable */
Expand Down Expand Up @@ -5250,7 +5250,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Thu, 08 Sep 2022 18:52:13 +0000',
date: 'Sun, 11 Sep 2022 15:54:30 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -11757,6 +11757,7 @@
var textarea = self.find('.cmd textarea');
function click() {
if ($target.is('.terminal') ||
$target.is('.terminal-scroller') ||
$target.is('.terminal-wrapper')) {
var len = self.get_command().length;
self.set_position(len);
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal-2.34.0.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -11757,6 +11757,7 @@
var textarea = self.find('.cmd textarea');
function click() {
if ($target.is('.terminal') ||
$target.is('.terminal-scroller') ||
$target.is('.terminal-wrapper')) {
var len = self.get_command().length;
self.set_position(len);
Expand Down
5 changes: 3 additions & 2 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, 08 Sep 2022 18:52:13 +0000
* Date: Sun, 11 Sep 2022 15:54:30 +0000
*/
/* global define, Map */
/* eslint-disable */
Expand Down Expand Up @@ -5250,7 +5250,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Thu, 08 Sep 2022 18:52:13 +0000',
date: 'Sun, 11 Sep 2022 15:54:30 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -11757,6 +11757,7 @@
var textarea = self.find('.cmd textarea');
function click() {
if ($target.is('.terminal') ||
$target.is('.terminal-scroller') ||
$target.is('.terminal-wrapper')) {
var len = self.get_command().length;
self.set_position(len);
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 8f6a33b

Please sign in to comment.