Subject: Incompatible string concatination in matchit

From: Klaus Ethgen <[email-masked]>
Date: Sun, 23 Jan 2022 13:08:09 +0100

Package: vim-runtime
Version: 2:8.2.3995-1
Severity: normal

Upstream changed matchit.vim in commit fa3b72348 to not accept "." as
concatination anymore (updating scriptversion to 4). However, they
forgot to change all "." to "..".

This is a upstream bug still in the master branch.

The following patch will fix that:
--- /usr/share/vim/vim82/pack/dist/opt/matchit/autoload/matchit.vim.orig        2022-01-23 12:54:50.973747466 +0100
+++ /usr/share/vim/vim82/pack/dist/opt/matchit/autoload/matchit.vim     2022-01-23 12:55:42.898040910 +0100
@@ -763,9 +763,9 @@
       let skip = "synIDattr(synID(line('.'),col('.'),1),'name') !~? '" ..
         \ strpart(skip,2) .. "'"
     elseif skip[0] == "r"
-      let skip = "strpart(getline('.'),0,col('.'))=~'" . strpart(skip,2). "'"
+      let skip = "strpart(getline('.'),0,col('.'))=~'" .. strpart(skip,2) .. "'"
     elseif skip[0] == "R"
-      let skip = "strpart(getline('.'),0,col('.'))!~'" . strpart(skip,2). "'"
+      let skip = "strpart(getline('.'),0,col('.'))!~'" .. strpart(skip,2) .. "'"
     endif
   endif
   return skip

-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 5 (daedalus/ceres)
Release:	5
Codename:	daedalus ceres
Architecture: x86_64

Kernel: Linux 5.13.4 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_CPU_OUT_OF_SPEC, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

vim-runtime depends on no packages.

Versions of packages vim-runtime recommends:
ii  vim             2:8.2.3995-1
ii  vim-gtk3 [vim]  2:8.2.3995-1
ii  vim-nox [vim]   2:8.2.3995-1

vim-runtime suggests no packages.

-- no debconf information

Regards
   Klaus
-- 
Klaus Ethgen                                       http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16            Klaus Ethgen <[email-masked]>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C

---

From: Mark Hindley <[email-masked]>
Date: Sun, 23 Jan 2022 12:29:53 +0000

Control: tag -1 debian upstream

Klaus

> Severity: normal

Thanks for this. Devuan does not fork src:vim and we use Debian's packages
directly without recompilation. So this issue should be reported to Debian's BTS
and/or vim upstream (since you identified the upstream issue and have a patch to
offer).

Thanks

Mark

---

From: Mark Hindley <[email-masked]>
Date: Wed, 11 Jan 2023 15:17:26 +0000

Version: 2:8.2.4659-1

Closing as fixed in Debian.

mark