-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[textinput] CTRL+T eats prompt label #10133
Labels
Comments
In addtition, doing that on Mac, I get the same character repeated.
Then the first ctrl T gives:
Then an few ctrl T later I get:
|
jalopezg-git
added a commit
to jalopezg-git/root
that referenced
this issue
Mar 16, 2022
This editor command (usually binded to Ctrl+T), transposes the character located at the cursor and the one to its left. However, its behavior was incorrect if the cursor was at end of the line, invoking `std::string::operator[]()` passing an index that is out of bounds. In that case, as per GNU Readline behavior, it should swap the two last characters. Closes root-project#10133.
1 task
jalopezg-git
added a commit
that referenced
this issue
Mar 16, 2022
This editor command (usually binded to Ctrl+T), transposes the character located at the cursor and the one to its left. However, its behavior was incorrect if the cursor was at end of the line, invoking `std::string::operator[]()` passing an index that is out of bounds. In that case, as per GNU Readline behavior, it should swap the two last characters. Closes #10133.
Neel-Shah-29
pushed a commit
to Neel-Shah-29/root-1
that referenced
this issue
Apr 6, 2022
This editor command (usually binded to Ctrl+T), transposes the character located at the cursor and the one to its left. However, its behavior was incorrect if the cursor was at end of the line, invoking `std::string::operator[]()` passing an index that is out of bounds. In that case, as per GNU Readline behavior, it should swap the two last characters. Closes root-project#10133.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Type "abcdefgh" in ROOT prompt. Start then pressing repeatedly Ctrl+T (transpose two characters).
You will end up "removing" the root[1] label.
Expected behavior
It should stop before the root[1] label.
To Reproduce
Setup
Additional context
#10121 (comment)
The text was updated successfully, but these errors were encountered: