Skip to content

Porting of yhirose fix for #129 (also fix #248) - #263

Open
paolopas wants to merge 2 commits into
antirez:masterfrom
paolopas:escappen-2
Open

Porting of yhirose fix for #129 (also fix #248)#263
paolopas wants to merge 2 commits into
antirez:masterfrom
paolopas:escappen-2

Conversation

@paolopas

@paolopas paolopas commented Apr 24, 2026

Copy link
Copy Markdown

This certainly fixes #248 better than my recent attempt at #255.
#255 suffered from the problem that any escape sequence would exit the completion loop, while the left and right arrow keys should accept the current completion.

So I ported the great solution already included in ericcurtin's fork, see ericcurtin/linenoise.cpp#9, adding the necessary changes to let the LEFT and RIGHT arrow keys (along with HOME, END, DELETE) accept the current completion.

@yhirose, I hope you don't mind.

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.

Bug: Arrow keys during tab completion break input (completion lost, raw escape codes inserted)

1 participant