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

Possibility to figure out the cursor position from within the completion callback #32

Open
devurandom opened this issue Nov 1, 2012 · 2 comments
Labels

Comments

@devurandom
Copy link

It would be nice if it was possible to figure out the cursor position from within the completion callback, so that other parts than just the end of the line could be completed.

@antirez
Copy link
Owner

antirez commented Feb 8, 2013

Makes sense IMHO. Accepted.

@w32zhong
Copy link

w32zhong commented Apr 18, 2016

@antirez @shvechikov Hi, I also think without this ability the completion in the middle is diffcult to achieve. So I did a pull request in #115. But I have not carefully inspected in detail whether my changes would affect other parts of the code, so please have a review and any advises is welcome.

cxw42 pushed a commit to cxw42/linenoise that referenced this issue Apr 26, 2021
UTF8 isWideChar, isCombiningChar: fast-bail for low-codepoint text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants