-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
deleting bullet from normal makes things weird #2
Comments
Interesting, thanks for reporting this bug! I found that it only happens if you go from the first item in a list directly to a nested list. So you get the same bug with this list:
But not with this list:
I'll see if I can figure out what's going on with the parser, I imagine something to do with starting with a nested list isn't being handled ideally, I can probably add some simple condition to at least avoid the weird rendering. |
This ends up being the same problem as: #5 Basically anything that doesn't follow the space pattern of 0, 2, 4, ... will end up with extra spaces on the first list item from tree-sitter. In this case the pattern ends up breaking breaking because removing the '-' causes the first item to be indented 2 instead of 0, so tree-sitter captures the leading 2 spaces. From there my logic simply puts the bullet point at the start of the list. Will track the fix through #5, resolving this one as a duplicate. |
Issue should be resolved by: df98da8 |
cursor on first bullet, hit
x
to deleteexpected: no change to virtual bullets
observed: virtual bullet is rendered on second line first column
The text was updated successfully, but these errors were encountered: