DeleteTextRect deletes rectangular region of text between start, end defining the upper-left and lower-right corners of a rectangle. Fails if st.Ch >= ed.Ch. Sets the timestamp on resulting Edit to now. An Undo record is automatically saved depending on Undo.Off setting.
(st, ed lexer.Pos)
| 329 | // Fails if st.Ch >= ed.Ch. Sets the timestamp on resulting Edit to now. |
| 330 | // An Undo record is automatically saved depending on Undo.Off setting. |
| 331 | func (ls *Lines) DeleteTextRect(st, ed lexer.Pos) *Edit { |
| 332 | ls.Lock() |
| 333 | defer ls.Unlock() |
| 334 | return ls.deleteTextRect(st, ed) |
| 335 | } |
| 336 | |
| 337 | // InsertText is the primary method for inserting text, |
| 338 | // at given starting position. Sets the timestamp on resulting Edit to now. |
no test coverage detected