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

file search speed got bad after commit 71ec6bb54685de67ca56425a2419799c490fd58f #327

Closed
6 tasks
manjusakalins opened this issue May 27, 2019 · 1 comment
Closed
6 tasks

Comments

@manjusakalins
Copy link

  • vim or neovim?
    • vim
    • neovim
  • Output of vim --version or nvim --version:
  • Output of :echo has("python"):
  • Output of :echo has("python3"):
  • Output of :echo &pythondll(only vim, not neovim):
  • Output of :echo &pythonthreedll(only vim, not neovim):
  • Output of :py print(sys.version):
  • Output of :py3 print(sys.version):
  • Output of :echo g:Lf_Debug_Cmd:
  • Output of :echo g:Lf_FilesFromCache:
  • Operating system:
    • Linux
    • Mac OS X
    • Windows
    • Etc.
  • Configurations related to LeaderF in vimrc:

Describe your question, feature request, or bug.

Steps to reproduce

Actual behaviour

Expected behaviour

@manjusakalins
Copy link
Author

manjusakalins commented May 27, 2019

When open big project.
ctrl p speed got bad after commit 71ec6bb
i try this and issue fixed:

diff --git a/autoload/leaderf/python/leaderf/instance.py b/autoload/leaderf/python/leaderf/instance.py
index ec9292e..04f5fdd 100644
--- a/autoload/leaderf/python/leaderf/instance.py
+++ b/autoload/leaderf/python/leaderf/instance.py
@@ -369,8 +369,8 @@ class LfInstance(object):
 
                 try:
                     self._window_object.cursor = (orig_row + buffer_len - orig_buf_len, 0)
-                    if self._window_object.cursor == (buffer_len, 0):
-                        lfCmd("normal! zb")
+                    #if self._window_object.cursor == (buffer_len, 0):
+                    #    lfCmd("normal! zb")
                 except vim.error:
                     self._window_object.cursor = (buffer_len, 0)
                     lfCmd("normal! zb")

Yggdroot added a commit that referenced this issue May 27, 2019
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

No branches or pull requests

2 participants