diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-03-08 01:58:07 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-03-08 03:20:01 -0500 |
commit | b624627d2ef27a207a0cf097dc108bf22b12b9bc (patch) | |
tree | d85d1b395b0416e59a3497fe431036befe01cc9a /vim | |
parent | 60203862885c72268dcc67716f178304a7b67ec8 (diff) | |
download | conf-b624627d2ef27a207a0cf097dc108bf22b12b9bc.tar.gz conf-b624627d2ef27a207a0cf097dc108bf22b12b9bc.zip |
don't add empty history lines
Diffstat (limited to 'vim')
-rw-r--r-- | vim/plugin/zshhistory.vim | 6 |
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 |