Mercurial > vim
annotate runtime/ftplugin/fpcmake.vim @ 25583:7d3c296a117f v8.2.3328
patch 8.2.3328: Coverity error for not checking return value
Commit: https://github.com/vim/vim/commit/b85d3627d9a7b41d603c58a16d0ddbf6b88beeaf
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 11 15:54:59 2021 +0200
patch 8.2.3328: Coverity error for not checking return value
Problem: Coverity error for not checking return value.
Solution: Check value is not negative.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 11 Aug 2021 16:00:06 +0200 |
parents | e3ec2ec8841a |
children | 8ae680be2a51 |
rev | line source |
---|---|
24569 | 1 " Vim filetype plugin file |
2 " Language: Free Pascal Makefile Generator | |
3 " Maintainer: Doug Kearns <dougkearns@gmail.com> | |
4 " Last Change: 2021 Apr 23 | |
5 | |
6 if exists("b:did_ftplugin") | |
7 finish | |
8 endif | |
9 | |
10 let s:cpo_save = &cpo | |
11 set cpo&vim | |
12 | |
13 runtime! ftplugin/make.vim | |
14 | |
15 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") | |
16 let b:browsefilter = "Free Pascal Makefile Definition Files (*.fpc)\t*.fpc\n" .. | |
17 \ "All Files (*.*)\t*.*\n" | |
18 endif | |
19 | |
20 let b:undo_ftplugin = b:undo_ftplugin .. " | unlet! b:browsefilter" | |
21 | |
22 let &cpo = s:cpo_save | |
23 unlet s:cpo_save | |
24 | |
25 " vim: nowrap sw=2 sts=2 ts=8 noet: |