Permalink
Browse files

Revert "Use uniq in histories"

This reverts commit 665f862.
  • Loading branch information...
1 parent 665f862 commit f6394baae8d3e3beb4ec6fdda4e9e9c550c2d52b @Shougo committed Feb 23, 2014
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(unite#util#uniq(histories), command)
+ let histories = add(filter(histories, "v:val !=# command"), command)
if g:vimshell_max_command_history > 0 &&
\ len(histories) > g:vimshell_max_command_history

0 comments on commit f6394ba

Please sign in to comment.