Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E121: Undefined variable: a:var #39

Closed
wildsurfer opened this issue May 3, 2013 · 1 comment
Closed

E121: Undefined variable: a:var #39

wildsurfer opened this issue May 3, 2013 · 1 comment

Comments

@wildsurfer
Copy link

I'm having issues on default installation of this plugin.

Steps to reproduce my issue:

  1. Install latest plugin (via pathogen + git clone)
  2. gvim /tmp/test.txt

  3. :w
  4. :SaveSession (session.vim 1.7: Saved 'default' session to ~/.vim/sessions/default.vim.)
  5. :q
  6. gvim

During gvim startup I see an error message:

Error detected while processing function xolox#session#auto_load..54_prompt:
line 9:
E121: Undefined variable: a:var
Press ENTER or type command to continue

Please note that I'm not doing any configuration. Just installing

Here is my ~/.vim/sessions/default.vim:

" ~/.vim/sessions/default.vim: Vim session script.
" Created by session.vim 1.7 on 03 May 2013 at 13:24:15.
" Open this file in Vim and run :source % to restore your session.

set guioptions=aegimrLtT
silent! set guifont=
if exists('g:syntax_on') != 1 | syntax on | endif
if exists('g:did_load_filetypes') != 1 | filetype on | endif
if exists('g:did_load_ftplugin') != 1 | filetype plugin on | endif
if exists('g:did_indent_on') != 1 | filetype indent on | endif
if &background != 'dark'
        set background=dark
endif
if !exists('g:colors_name') || g:colors_name != 'solarized' | colorscheme solarized | endif
call setqflist([])
let SessionLoad = 1
if &cp | set nocp | endif
let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0
let v:this_session=expand("<sfile>:p")
silent only
cd ~/.vim/sessions
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
  let s:wipebuf = bufnr('%')
endif
set shortmess=aoO
badd +1 /tmp/test.txt
silent! argdel *
edit /tmp/test.txt
set splitbelow splitright
set nosplitbelow
set nosplitright
wincmd t
set winheight=1 winwidth=1
" argglobal
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
setlocal fdi=#
setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 1 - ((0 * winheight(0) + 20) / 41)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
1
normal! 0
tabnext 1
if exists('s:wipebuf')
  silent exe 'bwipe ' . s:wipebuf
endif
unlet! s:wipebuf
set winheight=1 winwidth=20 shortmess=filnxtToO
let s:sx = expand("<sfile>:p:r")."x.vim"
if file_readable(s:sx)
  exe "source " . fnameescape(s:sx)
endif
let &so = s:so_save | let &siso = s:siso_save
tabnext 1
1wincmd w
doautoall SessionLoadPost
unlet SessionLoad
" vim: ft=vim ro nowrap smc=128
@xolox
Copy link
Owner

xolox commented May 3, 2013

Hi Ivan. Thanks for the bug report! I released a new version yesterday but unfortunately did not test the changes well enough... It should be fixed now! I'm closing this issue now, but if you have any further problems feel free to reopen this issue or create a new one. Here's hoping your second attempt to use vim-session will be more successful than the first :-).

@xolox xolox closed this as completed May 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants