Unsaved changes reported without editing anything
Repro (on Windows 10)
- Start MarkRight
- Open Markdown document
- Don't change anything
- Application window title does NOT show a "changed" indicator (
*) - Close application window
- Dialog box appears: "There are unsaved changes. Are you sure you want to continue? Your changes will be lost"
If I save the document immediately after opening it, I don't get the message. In general, the handling of the "changed" state seems to work correctly after the first save.
Which version are you running?
On start, markright initialises with :text and :saved-text as the same value (nothing or the opened content). Upon open / close, markright compares both of them and then displays the dialog if necessary. If nothing has changed then it should still match nothing to nothing and close without asking.
I'll try to reproduce this.
Hi David,
Which version are you running?
I installed 0.1.7 this morning.
Do you perform some kind of processing of the markdown text that may lead to the program believing that something changed?
Best regards Roland
David Mohl [email protected] hat am 12. November 2015 um 10:56 geschrieben:
Which version are you running?
On start, markright initialises with :text and :saved-text as the same value (nothing or the opened content). Upon open / close, markright compares both of them and then displays the dialog if necessary. If nothing has changed then it should still match nothing to nothing and close without asking.
I'll try to reproduce this.
— Reply to this email directly or view it on GitHub https://github.com/dvcrn/markright/issues/30#issuecomment-156053730 .
hrm, I can't manage to reproduce this. Could be a windows specific problem