Mercurial > vim
annotate runtime/ftplugin/tcsh.vim @ 26356:0884f2be6c2a v8.2.3709
patch 8.2.3709: Vim9: backtick expression expanded when not desired
Commit: https://github.com/vim/vim/commit/fad2742d538123abb9b384a053fd581f2acf6bb0
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 30 21:58:19 2021 +0000
patch 8.2.3709: Vim9: backtick expression expanded when not desired
Problem: Vim9: backtick expression expanded when not desired.
Solution: Only expand a backtick expression for commands that expand their
argument. Remove a few outdated TODO comments.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 30 Nov 2021 23:00:04 +0100 |
parents | 3b34837f4538 |
children | c968191a8557 |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file |
25973 | 2 " Language: tcsh |
3 " Maintainer: Doug Kearns <dougkearns@gmail.com> | |
4 " Previous Maintainer: Dan Sharp <dwsharp at users dot sourceforge dot net> | |
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 |