refactor: move some functions to winfloat.c (#26020)

This commit is contained in:
Raphael
2023-11-16 09:54:47 +08:00
committed by GitHub
parent 405bad5e08
commit 326d46f690
10 changed files with 297 additions and 262 deletions

View File

@@ -26,6 +26,7 @@
#include "nvim/types.h"
#include "nvim/vim.h"
#include "nvim/window.h"
#include "nvim/winfloat.h"
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "eval/window.c.generated.h"
@@ -635,7 +636,7 @@ void f_win_splitmove(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
if (wp == NULL || targetwin == NULL || wp == targetwin
|| !win_valid(wp) || !win_valid(targetwin)
|| win_valid_floating(wp) || win_valid_floating(targetwin)) {
|| win_float_valid(wp) || win_float_valid(targetwin)) {
emsg(_(e_invalwindow));
rettv->vval.v_number = -1;
return;