Skip to content

Commit

Permalink
Merge pull request #741 from eagleoflqj/fix_before_cursor
Browse files Browse the repository at this point in the history
fix before_cursor not split \t when word=true
  • Loading branch information
jcubic committed Jan 27, 2022
2 parents d4fb4c1 + 6460f9f commit 7fb40ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.terminal-src.js
Expand Up @@ -9275,7 +9275,7 @@
before_cursor: function(word) {
var pos = command_line.position();
var command = command_line.get().slice(0, pos);
var cmd_strings = command.split(' ');
var cmd_strings = command.split(/\s/);
var string; // string before cursor that will be completed
if (word) {
if (cmd_strings.length === 1) {
Expand Down

0 comments on commit 7fb40ce

Please sign in to comment.