InsertTextRect inserts a rectangle of text defined in given Edit record, (e.g., from RegionRect or DeleteRect). Returns a copy of the Edit record with an updated timestamp. An Undo record is automatically saved depending on Undo.Off setting.
(tbe *Edit)
| 348 | // Returns a copy of the Edit record with an updated timestamp. |
| 349 | // An Undo record is automatically saved depending on Undo.Off setting. |
| 350 | func (ls *Lines) InsertTextRect(tbe *Edit) *Edit { |
| 351 | ls.Lock() |
| 352 | defer ls.Unlock() |
| 353 | return ls.insertTextRect(tbe) |
| 354 | } |
| 355 | |
| 356 | // ReplaceText does DeleteText for given region, and then InsertText at given position |
| 357 | // (typically same as delSt but not necessarily). |
no test coverage detected