IsNotSaved returns true if buffer was changed (edited) since last Save.
()
| 172 | |
| 173 | // IsNotSaved returns true if buffer was changed (edited) since last Save. |
| 174 | func (tb *Buffer) IsNotSaved() bool { |
| 175 | // note: could use a mutex on this if there are significant race issues |
| 176 | return tb.notSaved |
| 177 | } |
| 178 | |
| 179 | // clearNotSaved sets Changed and NotSaved to false. |
| 180 | func (tb *Buffer) clearNotSaved() { |
no outgoing calls
no test coverage detected