-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(completions): correctly insert cursor position (#408)
The cursor was being inserted in a strange matter, which made the modified ast not have a `__cursor__()` function, so we couldn't find the cursor. Really, all we need to do is insert the cursor on its own line between the line. For example, if you were to put the cursor into the middle of this line of code ```elixir Enum.map(some_list, fn row -> end) ``` It would insert the cursor like so ```elixir Enum.map(some_list, fn row -> __cursor__() end) ``` Fixes #406
- Loading branch information
Showing
4 changed files
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters