Permalink
Browse files

Use uniq in histories

  • Loading branch information...
Shougo committed Feb 23, 2014
1 parent fb70f8c commit 665f8621885db3ad30396a584d23b79b8dbabf70
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/vimshell/history.vim
@@ -56,7 +56,7 @@ function! vimshell#history#append(command) "{{{
let histories = vimshell#history#read()
" Filtering.
- let histories = add(filter(histories, "v:val !=# command"), command)
+ let histories = add(unite#util#uniq(histories), command)
if g:vimshell_max_command_history > 0 &&
\ len(histories) > g:vimshell_max_command_history

0 comments on commit 665f862

Please sign in to comment.