mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	feat(man): respect 'wrapmargin' when wrapping man pages (#24091)
This commit is contained in:
		| @@ -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 } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Gregory Anders
					Gregory Anders