Re: Clarification: SCI_SETUNDOCOLLECTION
Andrew Truckle <[email protected]>
| Newsgroups | gmane.comp.lib.scintilla.devel |
|---|---|
| Message-ID | <[email protected]> |
Thank you for the clarification. This makes sense. On Sunday 5 May 2024 at 22:57:13 UTC+1 Neil wrote: > 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/1fb1d4d6-a10f-4d7d-8da1-20d5229a524fn%40googlegroups.com.