Fix :SSave problem with wildmode
With these settings: wildmode=list and laststatus=2 When call the command :SSave and use <tab> for autocomplete, and choose any session, then the message "Session already exists. Overwrite? [y/n]" does not appear on screen. References #155.
This commit is contained in:
parent
e3988d2446
commit
96ccdf7f15
|
@ -197,17 +197,16 @@ function! startify#session_save(...) abort
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if exists('a:1')
|
call inputsave()
|
||||||
let sname = a:1
|
let sname = exists('a:1')
|
||||||
else
|
\ ? a:1
|
||||||
call inputsave()
|
\ : input('Save under this session name: ', fnamemodify(v:this_session, ':t'), 'custom,startify#session_list_as_string')
|
||||||
let sname = input('Save under this session name: ', fnamemodify(v:this_session, ':t'), 'custom,startify#session_list_as_string')
|
\ | redraw
|
||||||
call inputrestore()
|
call inputrestore()
|
||||||
redraw
|
|
||||||
if empty(sname)
|
if empty(sname)
|
||||||
echo 'You gave an empty name!'
|
echo 'You gave an empty name!'
|
||||||
return
|
return
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let spath = s:session_dir . s:sep . sname
|
let spath = s:session_dir . s:sep . sname
|
||||||
|
|
Loading…
Reference in a new issue