Package: vim-runtime
Version: 2:9.0.1000-4
Severity: normal
Tags: patch
X-Debbugs-Cc: debianb...@redfelineninja.org.uk

Dear Maintainer,

Running :TOhtml results in:
~~~
Error detected while processing function tohtml#Convert2HTML[11]..script
/usr/sh
are/vim/vim90/syntax/2html.vim:
line 1884:
E121: Undefined variable: s:settings_no_doc
~~~

This is due to a typo on 2html.vim which I was able to correct locally using
the following patch:
~~~
Index: vim/vim90/syntax/2html.vim
===================================================================
--- vim.orig/vim90/syntax/2html.vim
+++ vim/vim90/syntax/2html.vim
@@ -1881,7 +1881,7 @@ if s:settings.use_css && !s:settings.no_
   endif
 endif

-if !s:settings.use_css && !s:settings_no_doc
+if !s:settings.use_css && !s:settings.no_doc
   " For Netscape 4, set <body> attributes too, though, strictly speaking, it's
   " incorrect.
   execute '%s:<body\([^>]*\):<body bgcolor="' . s:bgc . '" text="' . s:fgc .
'"\1>\r<font face="'. s:htmlfont .'"'
~~~

The upstream appears to have applied a similar patch:
https://github.com/vim/vim/commit/f1dcd14fc5d4370476cd82895a4479ca2d252e54#diff-0fd732992c6f1a9b27a162d1fbb5e849b7fa49965a8f83779e5bb4a57ac121be


Daniel.


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: arm64 (aarch64)
Foreign Architectures: amd64

Kernel: Linux 6.2.0-rc6-00129-g5d60edecd444 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

vim-runtime depends on no packages.

Versions of packages vim-runtime recommends:
ii  vim             2:9.0.1000-4
ii  vim-gtk3 [vim]  2:9.0.1000-4
ii  vim-tiny        2:9.0.1000-4

vim-runtime suggests no packages.

-- no debconf information

Reply via email to