Allow TAB completion on an empty buffer

Fixes #210
This commit is contained in:
Eric Bottard
2018-03-26 11:38:26 +02:00
parent a0b2eb005d
commit d813888dc7

View File

@@ -174,7 +174,9 @@ public class JLineShellAutoConfiguration {
})
.parser(parser());
return lineReaderBuilder.build();
LineReader lineReader = lineReaderBuilder.build();
lineReader.unsetOpt(LineReader.Option.INSERT_TAB); // This allows completion on an empty buffer, rather than inserting a tab
return lineReader;
}
/**