mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 19:06:31 +00:00
API: Refactor: Register/unregister created/destroyed tabpages
- Add the 'handle' field to `tabpage_T` - Add declare/implement functions for registering/unregistering/retrieving tabpages - Register/unregister tabpages when they are created/destroyed.
This commit is contained in:
@@ -30,9 +30,11 @@ static uint64_t next_handle = 1;
|
||||
|
||||
HANDLE_IMPL(buf_T, buffer)
|
||||
HANDLE_IMPL(win_T, window)
|
||||
HANDLE_IMPL(tabpage_T, tabpage)
|
||||
|
||||
void handle_init()
|
||||
{
|
||||
HANDLE_INIT(buffer);
|
||||
HANDLE_INIT(window);
|
||||
HANDLE_INIT(tabpage);
|
||||
}
|
||||
|
@@ -11,6 +11,7 @@
|
||||
|
||||
HANDLE_DECLS(buf_T, buffer)
|
||||
HANDLE_DECLS(win_T, window)
|
||||
HANDLE_DECLS(tabpage_T, tabpage)
|
||||
|
||||
void handle_init(void);
|
||||
|
||||
|
Reference in New Issue
Block a user