NewBufferFromStringWithCommand creates a new buffer containing the given string with a cursor loc and a search text
(text, path string, btype BufType, cmd Command)
| 341 | // NewBufferFromStringWithCommand creates a new buffer containing the given string |
| 342 | // with a cursor loc and a search text |
| 343 | func NewBufferFromStringWithCommand(text, path string, btype BufType, cmd Command) *Buffer { |
| 344 | return NewBuffer(strings.NewReader(text), int64(len(text)), path, btype, cmd) |
| 345 | } |
| 346 | |
| 347 | // NewBufferFromString creates a new buffer containing the given string |
| 348 | func NewBufferFromString(text, path string, btype BufType) *Buffer { |