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

Update Character.swift to fix Issue #57 #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WuYuanhun
Copy link

Fix Latex auto complete bug ( Issue #57)
Successfully Tested Locally.

Fix Issue lukakerr#57 by add '$' in isWhiteSpace check list.
@lukakerr
Copy link
Owner

Thanks for this. Unfortunately the fix is going to be a little harder than just changing this one line. Also, it doesn’t make sense for isWhitespace to return true when there is a $ sign, since a $ is not whitespace.

The fix would most likely involve looking and the current line, and checking whether the cursor is within two $ signs. If so, this means the user is inside an inline math block, and we then want autocomplete to succeed.

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.

None yet

2 participants