-
Notifications
You must be signed in to change notification settings - Fork 134
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
prompt moves based on hint #217
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome that you are tackling that! I like the simplification. Will try to give it a thorough testing
@@ -35,6 +35,54 @@ impl PromptCoordinates { | |||
} | |||
} | |||
|
|||
pub struct PromptLines<'prompt> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bikeshed: BufferView
as it does not care about the Prompt
directly and View
may reflect the reference nature. Same for the lifetime name
@jntrnr can you check with the new commit? |
@elferherrera same issue - |
@jntrnr @sholderbach @fdncred do you mind checking the new commit? |
@elferherrera - same issue |
@fdncred @sholderbach do you mind checking again this commit? |
Looking good to me. Even wrapping lines seem to be good at the bottom of the screen. The only thing i noticed that if the last line is reached with actual content, it jumps up a line to leave a blank line after a full repaint. |
I'd land this one and continue to work on other issues like 'very long buffer' and 'jumps up a line'. |
@fdncred I think that is a good idea. I dont want to make the PR larger |
it's interesting that I don't get this behavior on Mac. |
@elferherrera - thanks for banging this into shape! |
The prompt moves and gives space to hint when it is located at the bottom.
the prompt moves upwards based on the suggestion
Note: This also removes the issue when the suggestion was being redrawn every second