Mercurial > vim
view runtime/ftplugin/scdoc.vim @ 34405:5337abbdf88e v9.1.0127
patch 9.1.0127: Naming a non-pointer variable "oap" is strange
Commit: https://github.com/vim/vim/commit/5e3674b42da10b7e7c72d1f20f9a15379af1b60a
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu Feb 22 19:51:34 2024 +0100
patch 9.1.0127: Naming a non-pointer variable "oap" is strange
Problem: Naming a non-pointer variable "oap" is strange.
Solution: Rename it to "oa". Also prevent using freed memory in case of
memory allocation failure. (zeertzjq)
closes: #14075
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 22 Feb 2024 20:00:07 +0100 |
parents | cd68a630f0d0 |
children | 7c7432a53a6c |
line wrap: on
line source
" scdoc filetype plugin " Maintainer: Gregory Anders <contact@gpanders.com> " Last Updated: 2022-05-09 " Upstream: https://github.com/gpanders/vim-scdoc " Only do this when not done yet for this buffer if exists('b:did_ftplugin') finish endif " Don't load another plugin for this buffer let b:did_ftplugin = 1 setlocal comments=b:; setlocal commentstring=;%s setlocal formatoptions+=t setlocal noexpandtab setlocal shiftwidth=0 setlocal softtabstop=0 setlocal textwidth=80 let b:undo_ftplugin = 'setl com< cms< fo< et< sw< sts< tw<'