diff options
author | Gabriel Holodak <gthepiper@gmail.com> | 2017-11-30 22:15:39 -0500 |
---|---|---|
committer | Gabriel Holodak <gthepiper@gmail.com> | 2017-12-27 23:27:14 -0500 |
commit | 6740c94562cc1b271a6ea2458ebb847a6e3665e2 (patch) | |
tree | 64e6ba9187cfffa181eaade1aa81ba7183fd6774 /runtime/autoload | |
parent | c28ce5f6191d233228d1688de300727e1ae42831 (diff) | |
download | rneovim-6740c94562cc1b271a6ea2458ebb847a6e3665e2.tar.gz rneovim-6740c94562cc1b271a6ea2458ebb847a6e3665e2.tar.bz2 rneovim-6740c94562cc1b271a6ea2458ebb847a6e3665e2.zip |
Add support for escape sequences
Diffstat (limited to 'runtime/autoload')
-rw-r--r-- | runtime/autoload/man.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/autoload/man.vim b/runtime/autoload/man.vim index 12c1bf3c86..0a502be4c7 100644 --- a/runtime/autoload/man.vim +++ b/runtime/autoload/man.vim @@ -161,7 +161,7 @@ function! s:put_page(page) abort while getline(1) =~# '^\s*$' silent keepjumps 1delete _ endwhile - call man#highlight_backspaced_text() + call man#highlight_formatted_text() setlocal filetype=man endfunction @@ -375,7 +375,7 @@ function! man#init_pager() abort else keepjumps 1 endif - call man#highlight_backspaced_text() + call man#highlight_formatted_text() " This is not perfect. See `man glDrawArraysInstanced`. Since the title is " all caps it is impossible to tell what the original capitilization was. let ref = substitute(matchstr(getline(1), '^[^)]\+)'), ' ', '_', 'g') @@ -387,12 +387,12 @@ function! man#init_pager() abort execute 'silent file man://'.fnameescape(ref) endfunction -function! man#highlight_backspaced_text() abort +function! man#highlight_formatted_text() abort let l:modifiable = &modifiable set modifiable lua man = require("man") - luado return man.highlight_backspaced(line, linenr) + luado return man.highlight_formatted(line, linenr) let &modifiable = l:modifiable endfunction |