Skip to content

Commit

Permalink
refactor function name
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Nov 14, 2024
1 parent 6fa0aab commit 3297656
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -2649,7 +2649,7 @@
}
function set() {
clip.val(command);
fix_textarea();
fix_editable();
}
function insert(text) {
self.insert(text);
Expand Down Expand Up @@ -2924,7 +2924,7 @@
// will not fire) so we fake text entry, we could just put dummy
// data but we put real command and position
// -------------------------------------------------------------------------------
function fix_textarea(position_only) {
function fix_editable(position_only) {
if (!self.isenabled()) {
return;
}
Expand Down Expand Up @@ -3739,7 +3739,7 @@
command = string;
}
redraw();
fix_textarea();
fix_editable();
fire_change_command();
return removed;
},
Expand All @@ -3751,7 +3751,7 @@
self.position(bare_text(command).length);
}
redraw();
fix_textarea();
fix_editable();
if (!silent && command_changed) {
fire_change_command();
}
Expand Down Expand Up @@ -3808,7 +3808,7 @@
if (!stay) {
self.position(len, true, true);
}
fix_textarea();
fix_editable();
redraw();
fire_change_command();
return self;
Expand Down Expand Up @@ -3897,7 +3897,7 @@
if (!silent && is_function(settings.onPositionChange)) {
settings.onPositionChange(position, formatted_position);
}
fix_textarea(true);
fix_editable(true);
}
return self;
} else {
Expand All @@ -3907,7 +3907,7 @@
refresh: function() {
draw_prompt();
redraw();
fix_textarea(true);
fix_editable(true);
return self;
},
// if formatter change length of the strings (like emoji demo) we need to keep
Expand Down Expand Up @@ -4028,7 +4028,7 @@
draw_prompt();
}
fix_cursor();
fix_textarea();
fix_editable();
}
mobile_focus();
return self;
Expand Down

0 comments on commit 3297656

Please sign in to comment.