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

notionflux: complete past colon #219

Merged
merged 1 commit into from
Nov 7, 2019
Merged

Conversation

wilhelmy
Copy link
Collaborator

@wilhelmy wilhelmy commented Nov 6, 2019

lua> w=ioncore.current()
nil
lua> w:<Tab>
<list of methods supported by "w" object>

Previously, the part before the colon would be eaten on completion attempt.

lua> w=ioncore.current()
nil
lua> w:<Tab>
<list of methods supported by "w" object>

Previously, the part before the colon would be eaten on completion attempt.
@wilhelmy
Copy link
Collaborator Author

wilhelmy commented Nov 6, 2019

I think this should be good to go. If you notice other quirks with tab completion, please let me know.

@@ -287,6 +287,8 @@ char *completion_generator(const char *text, int state)

char *ret;
char *lastdot = strrchr(text, '.');
char *lastcolon = strrchr(text, ':');
lastdot = lastcolon && lastdot < lastcolon ? lastcolon : lastdot;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps questionable naming but 👍 ;)

@raboof raboof merged commit 930950a into master Nov 7, 2019
@raboof raboof deleted the notionflux-complete-colon branch November 7, 2019 11:08
@raboof raboof added the notionflux run-time Lua interface label Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notionflux run-time Lua interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants