Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix fuzzymatch #800

Merged
merged 1 commit into from
May 7, 2021
Merged

fix fuzzymatch #800

merged 1 commit into from
May 7, 2021

Conversation

sjwsl
Copy link
Contributor

@sjwsl sjwsl commented May 7, 2021

This logic error sometimes causes fatal

Error invoking 'python_execute' on channel 8 (python2-script-host):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/xutianshu/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/anyExpl.py", line 815, in start
    the_args.start(arguments, *args, **kwargs)
  File "/Users/xutianshu/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/anyExpl.py", line 747, in _default_action
    manager.startExplorer(win_pos[2:], *args, **kwargs)
  File "/Users/xutianshu/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/rgExpl.py", line 884, in startExplorer
    super(RgExplManager, self).startExplorer(win_pos, *args, **kwargs)
  File "/Users/xutianshu/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 2298, in startExplorer
    self.input()
  File "/Users/xutianshu/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 62, in deco
    func(self, *args, **kwargs)
  File "/Users/xutianshu/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 2524, in input
    self._search(cur_content)
  File "/Users/xutianshu/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 1071, in _search
    self._fuzzySearch(content, is_continue, step)
  File "/Users/xutianshu/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 1459, in _fuzzySearch
    pair, highlight_methods = self._filter(step, filter_method, content, is_continue)
  File "/Users/xutianshu/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 1116, in _filter
    result, highlight_methods = filter_method(cur_content)
  File "/Users/xutianshu/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 1241, in _andModeFilter
    result = filter_method(source=tmp_content)
TypeError: _fuzzyFilterEx() got an unexpected keyword argument 'source'

@Yggdroot Yggdroot merged commit e65a9b9 into Yggdroot:master May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants