From 6c27cd991c56e0961543a0585cdc094868eb022f Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Fri, 22 Apr 2022 20:07:20 +0800 Subject: [PATCH] test(flygrep): check vim patch 7.4.1557 --- autoload/SpaceVim/plugins/flygrep.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/SpaceVim/plugins/flygrep.vim b/autoload/SpaceVim/plugins/flygrep.vim index 0e7473017..d8b58b122 100644 --- a/autoload/SpaceVim/plugins/flygrep.vim +++ b/autoload/SpaceVim/plugins/flygrep.vim @@ -863,7 +863,11 @@ function! SpaceVim#plugins#flygrep#open(argv) abort \ }) else noautocmd botright split __flygrep__ - let s:flygrep_win_id = win_getid() + if has('patch-7.4.1557') + let s:flygrep_win_id = win_getid() + else + let s:flygrep_win_id = winnr() + endif let s:buffer_id = bufnr('__flygrep__') endif if exists('&winhighlight')