diff options
Diffstat (limited to 'src/api/helpers.h')
-rw-r--r-- | src/api/helpers.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/api/helpers.h b/src/api/helpers.h index 4c42ef1e17..9f24455b27 100644 --- a/src/api/helpers.h +++ b/src/api/helpers.h @@ -80,5 +80,12 @@ buf_T *find_buffer(Buffer buffer, Error *err); /// @return the window pointer win_T * find_window(Window window, Error *err); +/// Finds the pointer for a tabpage number +/// +/// @param tabpage the tabpage number +/// @param[out] err Details of an error that may have occurred +/// @return the tabpage pointer +tabpage_T * find_tab(Tabpage tabpage, Error *err); + #endif // NEOVIM_API_HELPERS_H |