1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 07:10:06 +08:00

test(nvim): fix nvim test in linux

This commit is contained in:
Eric Wong 2023-08-09 22:39:23 +08:00 committed by GitHub
parent 87d8ad1fd9
commit 100aa31e52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View File

@ -92,14 +92,15 @@ jobs:
if [ "$VIM_BIN" = "nvim" ]; then
export PATH="${DEPS}/_neovim/${VIM_TAG}/bin:${PATH}"
export VIM="${DEPS}/_neovim/${VIM_TAG}/share/nvim/runtime"
export VIM_Es="--headless"
else
export PATH="${DEPS}/_vim/${VIM_TAG}/bin:${PATH}"
export VIM="${DEPS}/_vim/${VIM_TAG}/share/vim"
fi
if [ "$DISABLE_ES" = "true" ]; then
export VIM_Es=""
else
export VIM_Es="-Es"
if [ "$DISABLE_ES" = "true" ]; then
export VIM_Es=""
else
export VIM_Es="-Es"
fi
fi
export PATH="/home/runner/.local/bin:${PATH}"
echo "\$PATH: \"${PATH}\""

View File

@ -8,11 +8,13 @@ Execute ( SpaceVim plugin: flygrep ):
let g:_spacevim_input_timeout = 0
let lnr = 0
let current_line = line('.')
Log getline('.')
for line in readfile('Makefile')
let lnr += 1
if line =~# 'COVIMERAGE'
break
endif
endfor
Log 'lnr is:' . lnr
AssertEqual lnr, current_line
unlet lnr line current_line