Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite4ce0c7

Browse files
authored
fix(health): git check and autocmd clean#36713
Problem: Incorrect Git check and improper autocmd cleanupSolution: Add once to the autocmd and fix the Git check condition
1 parent9a864d0 commite4ce0c7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎runtime/lua/vim/health/health.lua‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -533,13 +533,13 @@ local function check_sysinfo()
533533
localversion_for_report=nvim_version
534534
ifcommit_hashthen
535535
version_for_report=nvim_version:gsub('%+g'..commit_hash,' neovim/neovim@'..commit_hash)
536-
localhas_git=vim.fn.executable('git')==0
536+
localhas_git=vim.fn.executable('git')==1
537537
localhas_curl=vim.fn.executable('curl')==1
538-
localcmd=has_gitand {'git','ls-remote','https://github.com/neovim/neovim','nightly'}
538+
localcmd=has_gitand {'git','ls-remote','https://github.com/neovim/neovim','HEAD'}
539539
orhas_curland {
540540
'curl',
541541
'-s',
542-
'https://api.github.com/repos/neovim/neovim/commits/nightly',
542+
'https://api.github.com/repos/neovim/neovim/commits/master',
543543
'-H',
544544
'Accept: application/vnd.github.sha',
545545
}
@@ -633,6 +633,7 @@ local function check_sysinfo()
633633
'%#WarningMsg#%@v:lua.nvim_health_bugreport_open@Click to Create Bug Report on GitHub%X%*'
634634
vim.api.nvim_create_autocmd('BufDelete', {
635635
buffer=buf,
636+
once=true,
636637
command='lua _G.nvim_health_bugreport_open = nil',
637638
})
638639
end)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp