From 453e4e56b4a7ce7fa0f2f811266661d6f9fb5396 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Sat, 25 May 2013 17:45:23 +0200 Subject: [PATCH] SSave: use correct variable --- autoload/startify.vim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/autoload/startify.vim b/autoload/startify.vim index ed959d1..2001cc2 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -155,13 +155,14 @@ function! startify#session_save(...) abort return endif endif + let spath = s:session_dir . startify#get_separator() if exists('a:1') - let spath = s:session_dir . startify#get_separator() . a:1 + let spath .= a:1 else - let i = input('Save under this session name: ', fnamemodify(v:this_session, ':t'), 'custom,startify#session_list_as_string') + let spath .= input('Save under this session name: ', fnamemodify(v:this_session, ':t'), 'custom,startify#session_list_as_string') redraw - if empty(i) - echo 'You gave an invalid name!' + if empty(spath) + echo 'You gave an empty name!' return endif endif