Pine icon indicating copy to clipboard operation
Pine copied to clipboard

Update Character.swift to fix Issue #57

Open WuYuanhun opened this issue 6 years ago • 1 comments

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

WuYuanhun avatar Apr 28 '19 13:04 WuYuanhun

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.

lukakerr avatar Apr 28 '19 21:04 lukakerr