Skip to content

Conversation

robpallotta
Copy link

When starting a new playground, before executing the playground
initialistaion command, the current directory would be changed to the
snippet directory. This would have the side-effect of setting the
current directory of whatever buffer the user was in previously, which
could cause unexpected behaviour with other commands.

Instead of changing directory, locally bind default-directory so that
the initialisation command will be executed from the snippet directory
without an side effects.

When starting a new playground, before executing the playground
initialistaion command, the current directory would be changed to the
snippet directory. This would have the side-effect of setting the
current directory of whatever buffer the user was in previously, which
could cause unexpected behaviour with other commands.

Instead of changing directory, locally bind default-directory so that
the initialisation command will be executed from the snippet directory
without an side effects.
@draxil
Copy link

draxil commented May 11, 2021

Please accept this it's very annoying :)

@jiacai2050
Copy link

@grafov Could you merge this PR?

@lakkiy
Copy link

lakkiy commented Jul 3, 2021

@grafov

@grafov grafov merged commit 97d4f3b into grafov:master Nov 26, 2022
@grafov
Copy link
Owner

grafov commented Nov 26, 2022

It is better late than never :| Merged. Thank you!

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.

5 participants