Created
July 21, 2014 14:46
-
-
Save haruyama/641aebe049050d01bb0b to your computer and use it in GitHub Desktop.
unite_lua_filter_head.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
upstream fixed: Shougo/unite.vim@033ef50