Skip to content
Discussion options

You must be logged in to vote

Ah, yeah that's a problem without solution :/
AFAIK the problem is that the buffer is deleted/it's content replaced completely, and this causes the extmarks which tracks the borders of the i(i) to expand to contain the entire file, and this is then repeated, duplicating the content.
This can be prevented by always jumping through the snippet(most comfortable via region_check_events, it jumps to the i(0) once the cursor is outside the region of the snippet), or disabling whatever is replacing the buffer(formatter?)

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@L3MON4D3
Comment options

@danielo515
Comment options

@danielo515
Comment options

@L3MON4D3
Comment options

@danielo515
Comment options

Answer selected by danielo515
Comment options

You must be logged in to vote
1 reply
@L3MON4D3
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants