SetReadOnly sets whether the buffer is read-only.
(readonly bool)
| 243 | |
| 244 | // SetReadOnly sets whether the buffer is read-only. |
| 245 | func (tb *Buffer) SetReadOnly(readonly bool) *Buffer { |
| 246 | tb.Undos.Off = readonly |
| 247 | return tb |
| 248 | } |
| 249 | |
| 250 | // SetFilename sets the filename associated with the buffer and updates |
| 251 | // the code highlighting information accordingly. |
no outgoing calls
no test coverage detected