markright icon indicating copy to clipboard operation
markright copied to clipboard

Unsaved changes reported without editing anything

Open RWeigelt opened this issue 10 years ago • 3 comments

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.

RWeigelt avatar Nov 12 '15 09:11 RWeigelt

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.

dvcrn avatar Nov 12 '15 09:11 dvcrn

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 .

RWeigelt avatar Nov 12 '15 10:11 RWeigelt

hrm, I can't manage to reproduce this. Could be a windows specific problem

dvcrn avatar Nov 13 '15 09:11 dvcrn