mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
feat(ui): completeopt support popup like vim
This commit is contained in:
@@ -286,3 +286,13 @@ bool win_float_valid(const win_T *win)
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
win_T *win_float_find_preview(void)
|
||||
{
|
||||
for (win_T *wp = lastwin; wp && wp->w_floating; wp = wp->w_prev) {
|
||||
if (wp->w_float_is_info) {
|
||||
return wp;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user