-
Notifications
You must be signed in to change notification settings - Fork 2k
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
First letter of command remains when iterating through history #553
Comments
I met the same problem also. |
Went to test ConEmu, v150707 has no such issue. v140707 is used here, but no similar issue reports or related fix from 140707 onward discovered. Probably introduced by Cmder? |
I've tested it more detailed and found that a command longer than 4 letters could trigger the problem. I do not know if you have exactly the same length of trigger one? |
I got the same problem and replaced the ConEmu with the latest one(150707) , but not solved |
This is a duplicate issue: #506 |
@Maximus5 ConEmu issue or clink issue? |
ConEmu do not handle command line history. So that would be a clink issue, most probably. Of course, you should check latest ConEmu builds. |
Yup indeed, guys, go test with https://github.com/Stanzilla/cmder/releases/tag/1.2.6 please. |
Just found #264, can you guys try this workaround, please? |
@Stanzilla Would adding a space after the lambda solve this issue? |
Not sure, that would be 3 bits then, no? And I guess the problem is that it's one symbol but two bytes and therefore clink leaves one up. |
paging @mridgers for help :) |
It is quite possible that Clink is at fault here - I am suspicious that the lambda character is causing Readline to misbehave because it is a multi-byte character. Does the issue go away if the lambda is replaced with something ASCII-compatible like a |
Alright so just as I thought, @louy2 @doggy8088 can you test that for us? You'd have to replace the lambda character in |
@Stanzilla The problem go away when I replace the lambda character with |
I'll look into the issue and find a fix. There'is no reason at all why you should have to change from the lambda. |
Focus testing on #506 |
The first letter of the first command longer than a threshold visited when iterating through history remains displayed, pushes subsequent iterations off one char, but does not affect the actual commands iterated.
Examples assume a clear prompt at the beginning.
Example:
npm
(should be
npm run build
)4. Use ↑ to iterate and see:
(shoulde be
webpack
)5. Use ↓ to iterate and see:
(should be
npm run build
)6. Use ↓ to get back to clear prompt and see:
(should be empty)
Strangely enough, the misdisplay doesn't affect the execution of the commands. The actual executed commands ignore the added letter. Short commands in the history such as
ls
andnpm
doesn't trigger this artifact.The text was updated successfully, but these errors were encountered: