-
Notifications
You must be signed in to change notification settings - Fork 340
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
[Bug] Multi-line Ctrl-V support #227
Labels
Comments
I found a fork that solves this issue: https://github.com/binaek89/go-prompt |
aranjan7
added a commit
to maira-io/go-prompt
that referenced
this issue
May 28, 2022
this is ported from here. binaek@7e13943 bug detail: c-bata#227
vkrizan
pushed a commit
to vkrizan/go-prompt
that referenced
this issue
Apr 25, 2024
this is ported from here. binaek@7e13943 bug detail: c-bata#227
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug reports
I'm trying to insert multi-line code snippet, e.g:
and i get this:
end
but buffer is valid — if i press enter key, code execute normally.
Expected Behavior
Correct display of the code snippet.
Details
I looked at the source code, and it said that
\n
translates to\r
.After that, I tried to make my Ctrl-V handler like this:
but in this case, Render update screen invalid and i get (for every keystroke, e.g changing the cursor keys: left, right) something like this:
looking at the source code (render.go), I realized that at the moment only single lines are supported :(
The text was updated successfully, but these errors were encountered: