| 1 | diff -u -r ../neovim-09c58f721ba64ce0e6e1b5d0f2b6291ec9a6555f/runtime/autoload/man.vim ./runtime/autoload/man.vim |
| 2 | --- ../neovim-09c58f721ba64ce0e6e1b5d0f2b6291ec9a6555f/runtime/autoload/man.vim 2016-07-13 12:09:26.000000000 -0400 |
| 3 | +++ ./runtime/autoload/man.vim 2016-08-04 11:23:49.834834852 -0400 |
| 4 | @@ -73,7 +73,7 @@ |
| 5 | if empty($MANWIDTH) |
| 6 | let $MANWIDTH = winwidth(0) |
| 7 | endif |
| 8 | - silent exec 'r!/usr/bin/man '.s:cmd(sect, page).' | col -b' |
| 9 | + silent exec 'r!man '.s:cmd(sect, page).' | col -b | uniq' |
| 10 | " Remove blank lines from top and bottom. |
| 11 | while getline(1) =~# '^\s*$' |
| 12 | silent keepjumps 1delete _ |
| 13 | @@ -132,6 +132,6 @@ |
| 14 | endfunction |
| 15 | |
| 16 | function s:find_page(sect, page) abort |
| 17 | - let where = system('/usr/bin/man '.s:man_find_arg.' '.s:cmd(a:sect, a:page)) |
| 18 | + let where = system('man '.s:man_find_arg.' '.s:cmd(a:sect, a:page)) |
| 19 | return (where =~# '^ */') |
| 20 | endfunction |