From: dkearns Date: Tue, 27 Feb 2024 19:00:32 +0000 (+1100) Subject: runtime(sh): Update ftplugin, fix #14101 (#14102) X-Git-Tag: v9.1.0140~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e84d2d4432cd6e43f2bb300d02abc90d551bcf4a;p=thirdparty%2Fvim.git runtime(sh): Update ftplugin, fix #14101 (#14102) Add the 'b' flag to 'comments', so that the shebang line is not detected as comment. Fixes #14101. Signed-off-by: Doug Kearns Signed-off-by: Christian Brabandt --- diff --git a/runtime/ftplugin/sh.vim b/runtime/ftplugin/sh.vim index fccfe4be91..6d2093bf83 100644 --- a/runtime/ftplugin/sh.vim +++ b/runtime/ftplugin/sh.vim @@ -4,7 +4,7 @@ " Previous Maintainer: Dan Sharp " Contributor: Enno Nagel " Eisuke Kawashima -" Last Change: 2024 Jan 14 +" Last Change: 2024 Feb 27 if exists("b:did_ftplugin") finish @@ -14,7 +14,7 @@ let b:did_ftplugin = 1 let s:save_cpo = &cpo set cpo-=C -setlocal comments=:# +setlocal comments=b:# setlocal commentstring=#\ %s setlocal formatoptions-=t formatoptions+=croql