Skip to content

Commit

Permalink
Nvim: old versions don't have stdpath() yet
Browse files Browse the repository at this point in the history
Fixes mhinz#356
  • Loading branch information
mhinz committed Feb 15, 2019
1 parent ed655d5 commit bb16fe8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions autoload/startify.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1031,13 +1031,13 @@ function! s:get_session_path() abort
if exists('g:startify_session_dir')
let path = g:startify_session_dir
elseif has('nvim')
let path = stdpath('data') . s:sep . 'session'
let path = has('nvim-0.3.1')
\ ? stdpath('data') . s:sep . 'session'
\ : '~/.local/share/nvim/session'
else
if has('win32')
let path = '$HOME\vimfiles\session'
else
let path = '~/.vim/session'
endif
let path = has('win32')
\ ? '$HOME\vimfiles\session'
\ : '~/.vim/session'
endif

return resolve(expand(path))
Expand Down

0 comments on commit bb16fe8

Please sign in to comment.