Re: Clarification: SCI_SETUNDOCOLLECTION
Neil Hodgson <[email protected]>
| Newsgroups | gmane.comp.lib.scintilla.devel |
|---|---|
| Message-ID | <CACWkrTgps6R5rfRiccRssfgLAaxQzi83DxbwSeMUS7hy6RVsMA@mail.gmail.com> |
Andrew Truckle: > I find that if I open a file and don’t call SCI_SETUNDOCOLLECTION with a value of true, that the GetModify is never set to true. Eg, if I don’t make the call after loading a file, and then edit the file, the modified flag is never set. SCI_GETMODIFY → bool This returns non-zero if the document is modified and 0 if it is unmodified. The modified status of a document is determined by the undo position relative to the save point. The save point is set by SCI_SETSAVEPOINT, usually when you have saved data to a file. That is, SCI_GETMODIFY depends on undo position and thus on undo being enabled. Neil -- You received this message because you are subscribed to the Google Groups "scintilla-interest" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/scintilla-interest/CACWkrTgps6R5rfRiccRssfgLAaxQzi83DxbwSeMUS7hy6RVsMA%40mail.gmail.com.