Skip to content

Conversation

@svalaskevicius
Copy link
Contributor

Copy the configuration for a file rather than capture by reference.

Due to the logic in the alternative delimiter configurator, which swaps the delimiters when called, every second buffer the script is used swaps the delimiter order in the original config. This leads to incorrect delimiters being used in every second buffer.

This change makes a copy for each buffer so swapping the order will not affect the next loaded buffer.

Copy the configuration for a file rather than capture by reference.

Due to the logic in the alternative delimiter configurator, which swaps the
delimiters when called, every second buffer the script is used swaps the
delimiter order in the original config. This leads to incorrect
delimiters being used in every second buffer.

This change makes a copy for each buffer so swapping the order will not
affect the next loaded buffer.
@alerque alerque merged commit 3f860f2 into preservim:master Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants