diff options
author | erw7 <erw7.github@gmail.com> | 2021-01-06 12:14:57 +0900 |
---|---|---|
committer | erw7 <erw7.github@gmail.com> | 2021-01-06 12:17:45 +0900 |
commit | b77e21b35c07cbe6b5a9c5fa11255bc61be05a41 (patch) | |
tree | b59b3f4152a645c2b76417e8e7023ce920ce3662 | |
parent | 2ea3127697692b0b2c480d585ef6529e90a72b0e (diff) | |
download | rneovim-b77e21b35c07cbe6b5a9c5fa11255bc61be05a41.tar.gz rneovim-b77e21b35c07cbe6b5a9c5fa11255bc61be05a41.tar.bz2 rneovim-b77e21b35c07cbe6b5a9c5fa11255bc61be05a41.zip |
checkhealth: fix problem where &shada is empty
fixes #13700
-rw-r--r-- | runtime/autoload/health/nvim.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/health/nvim.vim b/runtime/autoload/health/nvim.vim index 8b734bbb6f..97da3b1e7e 100644 --- a/runtime/autoload/health/nvim.vim +++ b/runtime/autoload/health/nvim.vim @@ -42,7 +42,7 @@ function! s:check_config() abort endif let writeable = v:true - let shadafile = substitute(matchstr( + 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) |