-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two-line prompts not respected #390
Labels
Comments
Also buggy with multiline input. |
gwenn
added a commit
to gwenn/rustyline
that referenced
this issue
May 21, 2020
@lightclient Could you please give PR #392 a try ? |
@lightclient Would you mind testing with rustyline example first ? diff --git a/examples/example.rs b/examples/example.rs
index 2b3363f..916ba9c 100644
--- a/examples/example.rs
+++ b/examples/example.rs
@@ -102,7 +102,7 @@ fn main() -> rustyline::Result<()> {
}
let mut count = 1;
loop {
- let p = format!("{}> ", count);
+ let p = format!("{}\n> ", count);
rl.helper_mut().expect("No helper").colored_prompt = format!("\x1b[1;32m{}\x1b[0m", p);
let readline = rl.readline(&p);
match readline {
|
I’m AFK until Monday, but will try then. |
@lightclient I will also try to investigate with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems like when a prompt is more than one line, the list of autocompletions is cutoff. See the following image for an example. Left is with a two line prompt, right is a one line prompt.
In both cases, I doubled tapped tab after typing
vim abc
. Only the one line prompt properly displayed the potential completions in the directory.The text was updated successfully, but these errors were encountered: