AppendTextLineMarkup appends one line of new text to end of lines, using insert, and appending a LF at the end of the line if it doesn't already have one. User-supplied markup is used. Returns the edit region.
(text []byte, markup []byte)
| 377 | // insert, and appending a LF at the end of the line if it doesn't already |
| 378 | // have one. User-supplied markup is used. Returns the edit region. |
| 379 | func (ls *Lines) AppendTextLineMarkup(text []byte, markup []byte) *Edit { |
| 380 | ls.Lock() |
| 381 | defer ls.Unlock() |
| 382 | return ls.appendTextLineMarkup(text, markup) |
| 383 | } |
| 384 | |
| 385 | // ReMarkup starts a background task of redoing the markup |
| 386 | func (ls *Lines) ReMarkup() { |
nothing calls this directly
no test coverage detected