Skip to content
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

fix #38 #40

Merged
merged 2 commits into from
Dec 4, 2023
Merged

fix #38 #40

merged 2 commits into from
Dec 4, 2023

Conversation

slingamn
Copy link
Member

@slingamn slingamn commented Dec 3, 2023

Redrawing the prompt with (*runeBuffer).Print() was leaving the search menu visible. Fix this by clearing to the right of the prompt. This does not regress d9af567, i.e. text to the left of the prompt on the same line is not cleared.

cc @wader

Redrawing the prompt with (*runeBuffer).Print() was leaving the search
menu visible. Fix this by clearing to the right of the prompt. This does
not regress d9af567, i.e. text to the left of the prompt on the same line
is not cleared.
@wader
Copy link
Collaborator

wader commented Dec 3, 2023

When i try with example/readline-demo/readline-demo.go it seems like moving around the cursor inside a line causes everything right of the cursor to not be drawn but it seem the line buffer content is still there

@slingamn
Copy link
Member Author

slingamn commented Dec 3, 2023

Nice catch! Seems I really need to do #39 :-p

Should be fixed now. (Do you know if we make any attempt to handle right-to-left text?)

@wader
Copy link
Collaborator

wader commented Dec 3, 2023

Yeap now it seem to work fine! I still sometimes manage to end up with a new line or some extra line when using ctrl-r, but i think it's unrelated to this PR, will file an issue if i can figure who to reproduce.

@slingamn slingamn merged commit 9fa1f2c into master Dec 4, 2023
1 check passed
slingamn added a commit that referenced this pull request Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants