Skip to content

Instantly share code, notes, and snippets.

@haruyama
Created July 21, 2014 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haruyama/641aebe049050d01bb0b to your computer and use it in GitHub Desktop.
Save haruyama/641aebe049050d01bb0b to your computer and use it in GitHub Desktop.
unite_lua_filter_head.patch
diff --git a/autoload/unite/filters.vim b/autoload/unite/filters.vim
index 0156643..d7af4f5 100644
--- a/autoload/unite/filters.vim
+++ b/autoload/unite/filters.vim
@@ -158,9 +158,9 @@ do
local input = vim.eval('tolower(a:input)')
local candidates = vim.eval('a:candidates')
for i = #candidates-1, 0, -1 do
- local word = string.lower(candidates[i].action__path)
- or string.lower(candidates[i].word)
- if (string.find(word, input, 1, true)) ~= 1 then
+ local word = candidates[i].action__path
+ or candidates[i].word
+ if (string.find(string.lower(word), input, 1, true)) ~= 1 then
candidates[i] = nil
end
end
@haruyama
Copy link
Author

upstream fixed: Shougo/unite.vim@033ef50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment