Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Save the code if there's an output too. #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maozdemir
Copy link

@maozdemir maozdemir commented Aug 26, 2023

Hi Yusuf, it's Alper. Good to see you here! It's been a while since you told me about this code, and I'm glad to have the opportunity to get my hands on it finally.

This commit addresses the issue where the "show" command in the TermiC script was not displaying the entire code. The issue was that the script would only "save" the code for "show" to display if there was no output. This behaviour also affects the core functionality, because the script appends the new prompts into the persistent file instead of the temporary one, which will result in not including the previous outputting codes even if more lines are added. I am not sure if this is an intended behaviour, with the consideration that printing could be used for debugging only and maybe you wouldn't want them in your final code in some cases.

Changed it so that it'll save if there's an output too.

This PR fixes #14.

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.

Some code running but not saved
1 participant