public void resetCompleters ( ) { final ConsoleReader reader = getReader ( ) ; if ( reader != null ) { Collection < Completer > completers = reader . getCompleters ( ) ; for ( Completer completer : completers ) { reader . removeCompleter ( completer ) ; } // for some unknown reason / bug in JLine you have to iterate over twice to clear the completers (WTF) completers = reader . getCompleters ( ) ; for ( Completer completer : completers ) { reader . removeCompleter ( completer ) ; } } }
Reset the completers .