nvim-oxi
nvim-oxi copied to clipboard
Allow getting the buffer handle and make `Buffer` copy
Getting the internal handle is useful when nxim_oxi
hasn't made bindings to something yet. I also don't see why Buffer
shouldn't be Copy
, as it's just an integer. I also don't see how the internals of Buffer
could be changed to something !Copy
in the future. I think the other types like Window
should be made Copy
too.
@noib3 Is this okay?
@noib3 Is this okay?
@oberblastmeister sorry for keeping it open so long, I'll make sure to review this this weekend.
Closed by #176, which added a fn handle(&self) -> i32
method on Buffer
, Window
and TabPage
.
Neither of those is Copy
atm, but I think if we were to make them we should also probably change all the methods from taking &self
and &mut self
to taking self
, which is a breaking change.