Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix unite sources

  • Loading branch information...
commit 99ae3763e7039394cf6bd7cefc1b2ed345715a45 1 parent d03bc3a
@Shougo authored
View
2  autoload/neocomplete/sources/vimshell_history.vim
@@ -54,7 +54,7 @@ function! s:source.get_complete_position(context) "{{{
endfunction "}}}
function! s:source.gather_candidates(context) "{{{
- return reverse(filter(vimshell#util#uniq(vimshell#history#read()),
+ return reverse(filter(vimshell#util#uniq(reverse(vimshell#history#read())),
\ 'stridx(v:val, a:context.complete_str) >= 0'))
endfunction "}}}
View
6 autoload/unite/sources/vimshell_external_history.vim
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: vimshell_external_history.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
-" Last Modified: 17 Feb 2014.
+" Last Modified: 23 Feb 2014.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
@@ -88,8 +88,8 @@ function! s:source.hooks.on_post_filter(args, context) "{{{
endfunction"}}}
function! s:source.gather_candidates(args, context) "{{{
- return reverse(map(copy(a:context.source__current_histories),
- \ '{ "word" : v:val }'))
+ return map(vimshell#util#uniq(reverse(
+ \ a:context.source__current_histories)), '{ "word" : v:val }')
endfunction "}}}
" vim: foldmethod=marker
Please sign in to comment.
Something went wrong with that request. Please try again.