Skip to content

Commit

Permalink
Fix file separator in completer, #173
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Apr 8, 2018
1 parent eefd7a5 commit a5cc30e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtins/src/main/java/org/jline/builtins/Completers.java
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,10 @@ public void complete(LineReader reader, ParsedLine commandLine, final List<Candi
String value = curBuf + p.getFileName().toString();
if (Files.isDirectory(p)) {
candidates.add(new Candidate(
value + (reader.isSet(LineReader.Option.AUTO_PARAM_SLASH) ? "/" : ""),
value + (reader.isSet(LineReader.Option.AUTO_PARAM_SLASH) ? File.separator : ""),
getDisplay(reader.getTerminal(), p),
null, null,
reader.isSet(LineReader.Option.AUTO_REMOVE_SLASH) ? "/" : null,
reader.isSet(LineReader.Option.AUTO_REMOVE_SLASH) ? File.separator : null,
null,
false));
} else {
Expand Down

0 comments on commit a5cc30e

Please sign in to comment.