mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
API: Implement buffer_is_valid
This commit is contained in:
parent
550938e498
commit
6afc245305
@ -312,7 +312,8 @@ void buffer_set_name(Buffer buffer, String name, Error *err)
|
|||||||
|
|
||||||
bool buffer_is_valid(Buffer buffer)
|
bool buffer_is_valid(Buffer buffer)
|
||||||
{
|
{
|
||||||
abort();
|
Error stub;
|
||||||
|
return find_buffer(buffer, &stub) != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void buffer_insert(Buffer buffer, int64_t index, StringArray lines, Error *err)
|
void buffer_insert(Buffer buffer, int64_t index, StringArray lines, Error *err)
|
||||||
|
Loading…
Reference in New Issue
Block a user