NewBufferFromString creates a new buffer containing the given string
(text, path string, btype BufType)
| 346 | |
| 347 | // NewBufferFromString creates a new buffer containing the given string |
| 348 | func NewBufferFromString(text, path string, btype BufType) *Buffer { |
| 349 | return NewBuffer(strings.NewReader(text), int64(len(text)), path, btype, emptyCommand) |
| 350 | } |
| 351 | |
| 352 | // NewBuffer creates a new buffer from a given reader with a given path |
| 353 | // Ensure that ReadSettings and InitGlobalSettings have been called before creating |