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

Add saved/unsaved status #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add saved/unsaved status #37

wants to merge 2 commits into from

Conversation

prso
Copy link

@prso prso commented Nov 15, 2020

Until now the question "Do you want to save changes?" at quit was triggered if the stack (for undo) was not empty, this was wrong because you could save at any point and this would not empty the stack, and you could undo changes previous to the save what is a desirable function.

Now we keep a saved/unsaved state that is set when saving (pushing a special value in the stack) that is carefully checked when using the undo function.

The unsaved state is indicated by "*" at top left, at right of current address, emacs style.

prso added 2 commits November 14, 2020 21:59
…unction

Adding saved/unsaved mode (indicated by "*" at top left, near currrent address)
that is activated when doing save and takes into account the undo function
Also cleanup a bit the stack code
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.

1 participant