mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
api: Rename find_{buffer,window,tabpage}
They were renamed to find_{buffer,window,tabpage}_by_handle to avoid conflicts with existing functions of the same name.
This commit is contained in:
@@ -291,7 +291,7 @@ Buffer vim_get_current_buffer(void)
|
||||
/// @param[out] err Details of an error that may have occurred
|
||||
void vim_set_current_buffer(Buffer buffer, Error *err)
|
||||
{
|
||||
buf_T *buf = find_buffer(buffer, err);
|
||||
buf_T *buf = find_buffer_by_handle(buffer, err);
|
||||
|
||||
if (!buf) {
|
||||
return;
|
||||
@@ -348,7 +348,7 @@ Window vim_get_current_window(void)
|
||||
/// @param handle The window handle
|
||||
void vim_set_current_window(Window window, Error *err)
|
||||
{
|
||||
win_T *win = find_window(window, err);
|
||||
win_T *win = find_window_by_handle(window, err);
|
||||
|
||||
if (!win) {
|
||||
return;
|
||||
@@ -407,7 +407,7 @@ Tabpage vim_get_current_tabpage(void)
|
||||
/// @param[out] err Details of an error that may have occurred
|
||||
void vim_set_current_tabpage(Tabpage tabpage, Error *err)
|
||||
{
|
||||
tabpage_T *tp = find_tab(tabpage, err);
|
||||
tabpage_T *tp = find_tab_by_handle(tabpage, err);
|
||||
|
||||
if (!tp) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user