mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
feat(man): respect 'wrapmargin' when wrapping man pages (#24091)
This commit is contained in:
parent
e27377e33e
commit
08db61b19b
@ -134,6 +134,8 @@ The following changes to existing APIs or features add new behavior.
|
|||||||
• |:checkhealth| buffer now implements |folding|. The initial folding status is
|
• |:checkhealth| buffer now implements |folding|. The initial folding status is
|
||||||
defined by the 'foldenable' option.
|
defined by the 'foldenable' option.
|
||||||
|
|
||||||
|
• |:Man| now respects 'wrapmargin'
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
REMOVED FEATURES *news-removed*
|
REMOVED FEATURES *news-removed*
|
||||||
|
|
||||||
|
@ -436,7 +436,7 @@ local function get_page(path, silent)
|
|||||||
elseif vim.env.MANWIDTH then
|
elseif vim.env.MANWIDTH then
|
||||||
manwidth = vim.env.MANWIDTH
|
manwidth = vim.env.MANWIDTH
|
||||||
else
|
else
|
||||||
manwidth = api.nvim_win_get_width(0)
|
manwidth = api.nvim_win_get_width(0) - vim.o.wrapmargin
|
||||||
end
|
end
|
||||||
|
|
||||||
local cmd = localfile_arg and { 'man', '-l', path } or { 'man', path }
|
local cmd = localfile_arg and { 'man', '-l', path } or { 'man', path }
|
||||||
|
Loading…
Reference in New Issue
Block a user