Skip to content

Commit 38a9a6c

Browse files
authored
Merge pull request #551 from SammysHP/issue-259
Fix #259: Command prompt selection sometimes cleared
2 parents 6e6bf77 + b212886 commit 38a9a6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/content/commandline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@ const CommandLine = Module("commandline", {
12701270
this._lastSubstring = substring;
12711271

12721272
let value = this.completion;
1273-
if (util.compareIgnoreCase(value, substring.substr(0, value.length)))
1273+
if (value.length == substring.length || util.compareIgnoreCase(value, substring.substr(0, value.length)))
12741274
return;
12751275
substring = substring.substr(value.length);
12761276
this.removeSubstring = substring;

0 commit comments

Comments
 (0)