-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Settings: Fix completion values (#348)
The root cause was that text manipulation was reordered in a wrong way: JSON-encoded string was converted to snippet-field-content-encoded string first, but then it was treated as a simply JSON-encoded string again. Namely, stripping curly brackets away _after_ encoding them as \\} broke cursor things in a weird ways. Used pretty printing just because it looks better. But it required extra whitespace stripping: both outside and inside stripped brackets/braces. Also changed variable name from `encoded` to `content` in fmt, so they can never be accidentally reordered again. Fixes #347
- Loading branch information
1 parent
ae1fb8a
commit bfa509b
Showing
1 changed file
with
19 additions
and
12 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