Skip to content

Commit 7d2a45c

Browse files
committed
Bug fix: E121: Undefined variable: a:var (issue #39)
1 parent 037d0ba commit 7d2a45c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autoload/xolox/session.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
" Vim script
22
" Author: Peter Odding
3-
" Last Change: May 2, 2013
3+
" Last Change: May 3, 2013
44
" URL: http://peterodding.com/code/vim/session/
55

6-
let g:xolox#session#version = '1.7'
6+
let g:xolox#session#version = '1.7.1'
77

88
call xolox#misc#compat#check('session', 2)
99

@@ -320,7 +320,7 @@ function! s:prompt(msg, choices, option_name)
320320
else
321321
if g:session_verbose_messages
322322
let format = "%s Note that you can permanently disable this dialog by adding the following line to your %s script:\n\n\t:let %s = 'no'"
323-
let prompt = printf(format, a:msg, xolox#misc#os#is_win() ? '~\_vimrc' : '~/.vimrc', a:var)
323+
let prompt = printf(format, a:msg, xolox#misc#os#is_win() ? '~\_vimrc' : '~/.vimrc', a:option_name)
324324
else
325325
let prompt = a:msg
326326
endif

0 commit comments

Comments
 (0)