String returns the current text as a string, applying all current changes by calling editDone, which will generate a signal if there have been changes.
()
| 232 | // changes by calling editDone, which will generate a signal if there have been |
| 233 | // changes. |
| 234 | func (tb *Buffer) String() string { |
| 235 | return string(tb.Text()) |
| 236 | } |
| 237 | |
| 238 | // signalMods sends the BufMods signal for misc, potentially |
| 239 | // widespread modifications to buffer. |