Bug#846788: neovim-runtime: man plugin breaks startup
Ph. Marek
philipp.marek at linbit.com
Sat Dec 3 11:59:20 UTC 2016
Package: neovim-runtime
Version: 0.1.7-1
Severity: normal
With this version, starting nvim with a file on the cmdline is broken.
Instead of the right file being visible, all I get is an empty buffer with
the statusbar
man:// [-][RO] 0,0-1 Alles
at the bottom.
Using "nvim -V255/tmp/logfile" gives this explanation (sorry about the
german texts):
rufe function man#init_pager auf()
Zeile 1: " Remove all backspaced characters.
Zeile 2: execute 'silent keeppatterns keepjumps %substitute,.\b,,e'.(&gdefault?'':'g')
Zeile 2: silent keeppatterns keepjumps %substitute,.\b,,eg
Zeile 3: if getline(1) =~# '^\s*$'
Zeile 4: silent keepjumps 1delete _
Zeile 5: else
Zeile 6: keepjumps 1
Zeile 7: endif
Zeile 8: " This is not perfect. See `man glDrawArraysInstanced`. Since the title is
Zeile 9: " all caps it is impossible to tell what the original capitilization was.
Zeile 10: let ref = tolower(matchstr(getline(1), '^\S\+'))
Zeile 11: try
Zeile 12: let b:man_sect = man#extract_sect_and_name_ref(ref)[0]
rufe function man#init_pager[12]..man#extract_sect_and_name_ref auf('')
Zeile 1: if a:ref[0] ==# '-' " try ':Man -pandoc' with this disabled.
Zeile 2: throw 'manpage name cannot start with ''-'''
Zeile 3: endif
Zeile 4: let ref = matchstr(a:ref, '[^()]\+([^()]\+)')
Zeile 5: if empty(ref)
Zeile 6: let name = matchstr(a:ref, '[^()]\+')
Zeile 7: if empty(name)
Zeile 8: throw 'manpage reference cannot contain only parentheses'
Ausnahme geworfen: manpage reference cannot contain only parentheses
^^ Exception thrown
function man#init_pager[12]..man#extract_sect_and_name_ref abgebrochen
weiter in function man#init_pager
Zeile 13: catch
Ausnahme gefangen: manpage reference cannot contain only parentheses
Zeile 14: let b:man_sect = ''
Zeile 15: endtry
Ausnahme beendet: manpage reference cannot contain only parentheses
I guess that this is the reason for the interrupted startup.
Reverting neovim-runtime (alone!) back to 0.1.6-5 fixes this problem; also,
":e #" gets me to the expected buffer.
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
-- no debconf information
More information about the pkg-vim-maintainers
mailing list