Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit87bd16e

Browse files
authored
fix(man.lua): :Man slow/hangs if MANPAGER is set#36689
Problem:When `MANPAGER` is set to something like 'nvim +Man!',`vim.system({ 'nvim' })` call waits forever for input and times outafter 10 seconds in `system()` and the assert on `stdout` being not`nil` fails.Solution:Set `MANPAGER=cat` when calling `system()`
1 parent4107442 commit87bd16e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎runtime/lua/man.lua‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,8 @@ local function get_page(path, silent)
428428
iflocalfile_arg==nilthen
429429
localmpath=get_path('man')
430430
-- Check for -l support.
431-
localfile_arg= (mpathandsystem({'man','-l',mpath },true)or'')~=''
431+
localfile_arg= (mpathandsystem({'man','-l',mpath },true, {MANPAGER='cat'})or'')
432+
~=''
432433
end
433434

434435
localcmd=localfile_argand {'man','-l',path }or {'man',path }

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp