aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-05-17 20:43:35 +0800
committerGitHub <noreply@github.com>2022-05-17 05:43:35 -0700
commitbbfc4567dfabc8d4378ad26a2d1020e3b2565107 (patch)
treed39df01d35035f6bb141b490f48d76be423388b2
parentb239db3cb5618ffbfec28ec6ad79af04e1adb318 (diff)
downloadrneovim-bbfc4567dfabc8d4378ad26a2d1020e3b2565107.tar.gz
rneovim-bbfc4567dfabc8d4378ad26a2d1020e3b2565107.tar.bz2
rneovim-bbfc4567dfabc8d4378ad26a2d1020e3b2565107.zip
fix(health): correct shada file path #18603
-rw-r--r--runtime/autoload/health/nvim.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/health/nvim.vim b/runtime/autoload/health/nvim.vim
index f3732e012f..9b387095ee 100644
--- a/runtime/autoload/health/nvim.vim
+++ b/runtime/autoload/health/nvim.vim
@@ -45,7 +45,7 @@ function! s:check_config() abort
let shadafile = empty(&shada) ? &shada : substitute(matchstr(
\ split(&shada, ',')[-1], '^n.\+'), '^n', '', '')
let shadafile = empty(&shadafile) ? empty(shadafile) ?
- \ stdpath('data').'/shada/main.shada' : expand(shadafile)
+ \ stdpath('state').'/shada/main.shada' : expand(shadafile)
\ : &shadafile ==# 'NONE' ? '' : &shadafile
if !empty(shadafile) && empty(glob(shadafile))
" Since this may be the first time neovim has been run, we will try to