Initial push
[termux-packages] / packages / fish / complete.cpp.patch
1 diff -u -r ../fish-2.1.1/complete.cpp ./complete.cpp
2 --- ../fish-2.1.1/complete.cpp 2014-09-24 05:51:07.000000000 -0400
3 +++ ./complete.cpp 2015-02-05 17:43:46.010415990 -0500
4 @@ -1731,6 +1731,9 @@
5 */
6 bool completer_t::try_complete_user(const wcstring &str)
7 {
8 +#ifdef __ANDROID__
9 + return 0;
10 +# else
11 const wchar_t *cmd = str.c_str();
12 const wchar_t *first_char=cmd;
13 int res=0;
14 @@ -1788,6 +1791,7 @@
15 }
16
17 return res;
18 +#endif
19 }
20
21 void complete(const wcstring &cmd, std::vector<completion_t> &comps, completion_request_flags_t flags, wcstring_list_t *commands_to_load)