Your message dated Mon, 18 Dec 2017 03:49:13 +0000 with message-id <[email protected]> and subject line Bug#883422: fixed in vim 2:8.0.1401-1 has caused the Debian Bug report #883422, regarding debian.vim: maparg() invalid argument to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 883422: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=883422 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: vim-common Version: 2:8.0.0197-4+deb9u1 Severity: important After upgrade to Stretch my <S-Insert> mapping in .vimrc stopped working. In debian.vim there is a check for existing <S-Insert> mapping using maparg() function. The second argument to this function is invalid. According to vim documentation, {mode} argument can be either a single character string or an empty string. Instead, a string with several characters is used, but the check happens always against the first character only. Finally, as a result, some existing mappings may become overridden. Here is a proposed fix: --- /usr/share/vim/vim80/debian.vim-orig 2017-12-03 22:29:53.939533583 +0200 +++ /usr/share/vim/vim80/debian.vim 2017-12-03 22:34:17.520734735 +0200 @@ -26,12 +26,21 @@ if &term =~ "xterm-debian" || &term =~ " set t_Sb= [4%dm endif +function! <SID>MapExists(name, modes) + for mode in split(a:modes, '\zs') + if !empty(maparg(a:name, mode)) + return 1 + endif + endfor + return 0 +endfunction + " Some Debian-specific things if has("autocmd") if has('gui') " Make shift-insert work like in Xterm - autocmd GUIEnter * if empty(maparg("<S-Insert>", "nvso")) | execute "map <S-Insert> <MiddleMouse>" | endif - autocmd GUIEnter * if empty(maparg("<S-Insert>", "ic")) | execute "map! <S-Insert> <MiddleMouse>" | endif + autocmd GUIEnter * if !<SID>MapExists("<S-Insert>", "nvso") | execute "map <S-Insert> <MiddleMouse>" | endif + autocmd GUIEnter * if !<SID>MapExists("<S-Insert>", "ic") | execute "map! <S-Insert> <MiddleMouse>" | endif endif endif -- System Information: Debian Release: 9.1 APT prefers stable APT policy: (1000, 'stable'), (900, 'stable'), (750, 'testing'), (500, 'stable-updates'), (500, 'unstable'), (500, 'oldstable') Architecture: amd64 (x86_64) Kernel: Linux 4.9.0-4-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages vim-common depends on: ii xxd 2:8.0.0197-4+deb9u1 Versions of packages vim-common recommends: ii vim-gtk [vim] 2:8.0.0197-4+deb9u1 ii vim-tiny 2:8.0.0197-4+deb9u1 vim-common suggests no packages. -- no debconf information
--- End Message ---
--- Begin Message ---Source: vim Source-Version: 2:8.0.1401-1 We believe that the bug you reported is fixed in the latest version of vim, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. James McCoy <[email protected]> (supplier of updated vim package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Sun, 17 Dec 2017 22:32:25 -0500 Source: vim Binary: vim-common vim-gui-common vim-runtime vim-doc vim-tiny vim vim-gtk vim-gtk3 vim-nox vim-athena vim-gnome xxd Architecture: source Version: 2:8.0.1401-1 Distribution: unstable Urgency: medium Maintainer: Debian Vim Maintainers <[email protected]> Changed-By: James McCoy <[email protected]> Description: vim - Vi IMproved - enhanced vi editor vim-athena - Vi IMproved - enhanced vi editor - with Athena GUI vim-common - Vi IMproved - Common files vim-doc - Vi IMproved - HTML documentation vim-gnome - Vi IMproved - enhanced vi editor (dummy package) vim-gtk - Vi IMproved - enhanced vi editor - with GTK2 GUI vim-gtk3 - Vi IMproved - enhanced vi editor - with GTK3 GUI vim-gui-common - Vi IMproved - Common GUI files vim-nox - Vi IMproved - enhanced vi editor - with scripting languages suppo vim-runtime - Vi IMproved - Runtime files vim-tiny - Vi IMproved - enhanced vi editor - compact version xxd - tool to make (or reverse) a hex dump Closes: 761064 848663 883422 884495 Changes: vim (2:8.0.1401-1) unstable; urgency=medium . [ upstream ] * syntax/sh.vim: + Fix syntax highlighting of $() when the /bin/sh is detected as POSIX-compliant. (Closes: #848663) + Correctly highlight escaped single-quotes inside test expressions. (Closes: #761064) . [ James McCoy ] * runtime/debian.vim: + Fix mechanism used to check for <S-Insert> mappings, since maparg() doesn't understand multiple modes in the {mode} argument. Thanks to Sergey Vlasov for the patch! (Closes: #883422) * syntax/debcontrol.vim: + Fix highlighting of "Section: javascript" … again. (Closes: #884495) Checksums-Sha1: ec1026b5ab614c0a1d8fe2c1505388290308f18c 2990 vim_8.0.1401-1.dsc d74136603959a88a5b197c56ebad018c55adccc4 13411676 vim_8.0.1401.orig.tar.gz 3e2ca6ef0fc7da21ad143a37a98045cb64ec4bc5 178892 vim_8.0.1401-1.debian.tar.xz 6cf56069c3e49b269c2d036b612c46c8dfc6399e 21305 vim_8.0.1401-1_amd64.buildinfo Checksums-Sha256: 3463804a81fafaae4d16542cad270e47ddfdea557821860795c514faedcf37ac 2990 vim_8.0.1401-1.dsc 75c4971d32753bb358d79e5e21a1cc6f8970bf067d583751097f668ada2355ec 13411676 vim_8.0.1401.orig.tar.gz 074b5830eb76e755476612393fd487fe97c0486abbf7b04c32cb3b52fe5303bd 178892 vim_8.0.1401-1.debian.tar.xz 4a9671b1d0fff414aedc971871f706f672f1d0b6fc3fafd566bd0f2b324b56a0 21305 vim_8.0.1401-1_amd64.buildinfo Files: 2d2b6a30903c29aaff018c2b48aa021c 2990 editors optional vim_8.0.1401-1.dsc 8ce79bf077ee41a3a7d25bda9918dc00 13411676 editors optional vim_8.0.1401.orig.tar.gz d388f12688abb9106c12d98255c267f2 178892 editors optional vim_8.0.1401-1.debian.tar.xz a15b10592f86f6f4006b1624f07d6052 21305 editors optional vim_8.0.1401-1_amd64.buildinfo -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEkb+/TWlWvV33ty0j3+aRrjMbo9sFAlo3OSRfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDkx QkZCRjRENjk1NkJENURGN0I3MkQyM0RGRTY5MUFFMzMxQkEzREIACgkQ3+aRrjMb o9t63xAAvO/2n4bECZnXM52BbGMamDO24KiryJ2lo5YtElia0qz82TYb1j/ch2Qm AiRkYxtiNqTOD8zphbNtIc+eKjEeWOZv+pSTM4CddPuXS+EFcHFlwzLGcPIQ7nzI 24x+Y8/rBfyeMXq398Kj2NRWmylOAXascuVbnossFoEKGnwUwcUXaDdyDakx/BAk J+S8rKfh7pjgdc5w8cCcZmRzRa5ExnmU468/SYEvxLE0Y02ozpzY2V3EjECvawTs J8YT8ijI2Z9UgHmTPoQglgvsz/wTRM89lPum+6TXegjdR8d2di7cBmUVLP099yJJ jOeFDobf6yP0hiQGpk0siD5wS/7MojAi3DXoBXEuvT3QHdiPp13EMHZepXoJJQCT QvVl/Ls8M49ChycPAswGYjsdBGYLZ59HAX9qLvKmpJrbZXksgUSx42zI8wLzdGOW yOt6f4eboIwVsUTo818YwN7cX+p/ZL8noHqLv2BVFztfgpA9WGqvVrhh3CXzZUK5 AhSIfxPtth2SquGSsUYSkuLz8WN1eJr/0f6Z8t6XaLsxvJfe1flCn8CNpWHJM2N/ G49scNFmRqmyoA+ABrexp+wUn2ZXNaN2MxfQ6RKurO5Oly1GERBF9afZQ/DFMj/C HNZ8j9wURDy3Cj8W6jUK5DjBQo7YuNPIi6m7vKKouqgU5t2/DNw= =9aLE -----END PGP SIGNATURE-----
--- End Message ---

