-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Bug]: neovim "Man" command is broken by termux patch #16720
Labels
bug report
Something is not working properly.
Comments
The commit was "branched" from |
Thanks @xtkoba. I think it's a bug in both places :) I just installed |
may I send a PR to fix this patch? |
Please go ahead |
ajpaon
pushed a commit
to ajpaon/termux-packages
that referenced
this issue
Jun 2, 2023
These patches break neovim's ability to find manpages Fixes termux#16720
xtkoba
pushed a commit
that referenced
this issue
Jun 3, 2023
These patches break neovim's ability to find manpages Fixes #16720
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem description
Neovim provides a plugin for viewing man pages in the editor. It's broken in termux, and I'll explain why.
The plugin works by using the
man
command to find the path to the man file.When neovim was updated to 0.9 on termux, a change was made to this patch: packages/neovim/runtime-lua-man.lua that causes the plugin to use
mandoc
to find the file path.ebeb10f
So now, instead of running (for example)
We do
This error message is swallowed by the lua plugin - it really took some dedicated debugging to find the cause!
When I manually revert this change and use
man
instead ofmandoc
, the plugin works again.It's not at all clear to me what the rationale for using
mandoc
here was. It's not mentioned in the commit and it's not explained in the comment change. I think it was probably an accident; AFAICT no version ofmandoc
supports the-w
switch.What steps will reproduce the bug?
Running this command in neovim
Results in the error
This is reproducible starting from
nvim -u NORC
, which runs neovim without my custom config.On the other hand, running
man strace
in bash works fine.What is the expected behavior?
The man page should open
System information
termux-info:
The text was updated successfully, but these errors were encountered: