summaryrefslogtreecommitdiffstats
path: root/vim/plugin/zshhistory.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/plugin/zshhistory.vim')
-rw-r--r--vim/plugin/zshhistory.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/vim/plugin/zshhistory.vim b/vim/plugin/zshhistory.vim
index 29b3c67..1969fb7 100644
--- a/vim/plugin/zshhistory.vim
+++ b/vim/plugin/zshhistory.vim
@@ -40,8 +40,10 @@ endfunction
function! s:init_zsh_hist ()
for l:fname in <SID>get_buffer_list()
- let s:initial_files[l:fname] = 1
- call histadd(":", "e " . l:fname)
+ if strlen(l:fname) > 0
+ let s:initial_files[l:fname] = 1
+ call histadd(":", "e " . l:fname)
+ endif
endfor
call delete(g:_zsh_hist_fname)
endfunction