mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07: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
|
||||
defined by the 'foldenable' option.
|
||||
|
||||
• |:Man| now respects 'wrapmargin'
|
||||
|
||||
==============================================================================
|
||||
REMOVED FEATURES *news-removed*
|
||||
|
||||
|
@ -436,7 +436,7 @@ local function get_page(path, silent)
|
||||
elseif vim.env.MANWIDTH then
|
||||
manwidth = vim.env.MANWIDTH
|
||||
else
|
||||
manwidth = api.nvim_win_get_width(0)
|
||||
manwidth = api.nvim_win_get_width(0) - vim.o.wrapmargin
|
||||
end
|
||||
|
||||
local cmd = localfile_arg and { 'man', '-l', path } or { 'man', path }
|
||||
|
Loading…
Reference in New Issue
Block a user