Closed yangrq1018 closed 7 months ago
diff --git a/autoload/leaderf/python/leaderf/rgExpl.py b/autoload/leaderf/python/leaderf/rgExpl.py
index bc23f61..7f7ba80 100644
--- a/autoload/leaderf/python/leaderf/rgExpl.py
+++ b/autoload/leaderf/python/leaderf/rgExpl.py
@@ -594,6 +594,7 @@ class RgExplManager(Manager):
else:
lfCmd("hide buffer +%s %s" % (line_num, buf_number))
lfCmd("norm! ^zv")
+ lfCmd("call search('%s', 'zW', line('.'))" % escQuote(self._getExplorer().getPatternRegex()[0]))
lfCmd("norm! zz")
if "preview" not in kwargs:
This is definitely causing the issue. getPatternRegex() returns nothing.
Fixed, thanks.
Fixed.
vim or neovim?
Output of
vim --version
ornvim --version
: NVIM v0.10.0-dev-2063+ga767c046f Build type: RelWithDebInfo LuaJIT 2.1.1703358377 Run "nvim -V1 -v" for more infoOutput of
:echo has("python")
: 0Output of
:echo has("python3")
: 1Output of
:echo &pythondll
(only vim, not neovim):Output of
:echo &pythonthreedll
(only vim, not neovim):Output of
:py print(sys.version)
: 3.11.5 (main, Sep 11 2023, 13:54:46) [GCC 11.2.0]Output of
:py3 print(sys.version)
: 3.11.5 (main, Sep 11 2023, 13:54:46) [GCC 11.2.0]Output of
:echo g:Lf_Debug_Cmd
:Output of
:echo g:Lf_FilesFromCache
:Operating system:
Configurations related to LeaderF in vimrc:
Describe your question, feature request, or bug.
Leader f rg is printing python exception on selection.
Steps to reproduce
Use leader f rg search, type something to search for, choose any entry from the result, hit enter, then the error logging shows up.
The jump is fine, though. Dismiss the error then we can jump to that file.
Actual behaviour
See above.
Expected behaviour
Select the result should not print any error.