get_alternate_or_new

Function get_alternate_or_new 

Source
pub fn get_alternate_or_new() -> Option<Buffer>
Expand description

Retrieves the alternate buffer or creates a new one if none exists.

The alternate buffer is the buffer previously visited, accessed via Nvim’s “#” register. If no alternate buffer exists (bufnr(“#”) < 0), a new buffer is created.

§Errors