Mercurial > vim
annotate runtime/ftplugin/tcsh.vim @ 28451:e015d650ea9f v8.2.4750
patch 8.2.4750: small pieces of dead code
Commit: https://github.com/vim/vim/commit/b836658a04ee5456deca2ee523de9efe51252da3
Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>
Date: Thu Apr 14 20:43:56 2022 +0100
patch 8.2.4750: small pieces of dead code
Problem: Small pieces of dead code.
Solution: Remove the dead code. (Goc Dundar, closes https://github.com/vim/vim/issues/10190) Rename the
qftf_cb struct member to avoid confusion.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 14 Apr 2022 21:45:02 +0200 |
parents | c968191a8557 |
children | 09e8f7ac05e0 |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file |
25973 | 2 " Language: tcsh |
3 " Maintainer: Doug Kearns <dougkearns@gmail.com> | |
28010 | 4 " Previous Maintainer: Dan Sharp |
25973 | 5 " Last Change: 2021 Oct 15 |
7 | 6 |
7 if exists("b:did_ftplugin") | finish | endif | |
8 | |
9 let s:save_cpo = &cpo | |
10 set cpo-=C | |
11 | |
12 " Define some defaults in case the included ftplugins don't set them. | |
13 let s:undo_ftplugin = "" | |
25973 | 14 let s:browsefilter = "csh Files (*.csh)\t*.csh\n" .. |
7 | 15 \ "All Files (*.*)\t*.*\n" |
16 | |
17 runtime! ftplugin/csh.vim ftplugin/csh_*.vim ftplugin/csh/*.vim | |
18 let b:did_ftplugin = 1 | |
19 | |
20 " Override our defaults if these were set by an included ftplugin. | |
21 if exists("b:undo_ftplugin") | |
22 let s:undo_ftplugin = b:undo_ftplugin | |
23 endif | |
24 if exists("b:browsefilter") | |
25 let s:browsefilter = b:browsefilter | |
26 endif | |
27 | |
25973 | 28 if (has("gui_win32") || has("gui_gtk")) |
29 let b:browsefilter="tcsh Scripts (*.tcsh)\t*.tcsh\n" .. s:browsefilter | |
7 | 30 endif |
31 | |
25973 | 32 let b:undo_ftplugin = "unlet! b:browsefilter | " .. s:undo_ftplugin |
7 | 33 |
34 let &cpo = s:save_cpo | |
3410
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
35 unlet s:save_cpo |