kkawakam / rustyline

Readline Implementation in Rust
https://crates.io/crates/rustyline/
MIT License
1.52k stars 175 forks source link

How do I make completion work? #704

Closed playXE closed 1 year ago

playXE commented 1 year ago

Here is a gist with completion implemented properly I think: https://gist.github.com/playXE/7a02ccabf6665b95c382531c8555eae4

But when I press TAB nothing is completed or displayed in REPL although eprintln!() inside complete does display possible completions.

playXE commented 1 year ago

nvm, I've implemented it incorrectly