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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
25973
3b34837f4538 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
2 " Language: tcsh
3b34837f4538 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
3b34837f4538 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
4 " Previous Maintainer: Dan Sharp <dwsharp at users dot sourceforge dot net>
3b34837f4538 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
5 " Last Change: 2021 Oct 15
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 if exists("b:did_ftplugin") | finish | endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 let s:save_cpo = &cpo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 set cpo-=C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " Define some defaults in case the included ftplugins don't set them.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 let s:undo_ftplugin = ""
25973
3b34837f4538 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
14 let s:browsefilter = "csh Files (*.csh)\t*.csh\n" ..
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 \ "All Files (*.*)\t*.*\n"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 runtime! ftplugin/csh.vim ftplugin/csh_*.vim ftplugin/csh/*.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " Override our defaults if these were set by an included ftplugin.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 if exists("b:undo_ftplugin")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 let s:undo_ftplugin = b:undo_ftplugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 if exists("b:browsefilter")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 let s:browsefilter = b:browsefilter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
25973
3b34837f4538 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
28 if (has("gui_win32") || has("gui_gtk"))
3b34837f4538 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
29 let b:browsefilter="tcsh Scripts (*.tcsh)\t*.tcsh\n" .. s:browsefilter
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
25973
3b34837f4538 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
32 let b:undo_ftplugin = "unlet! b:browsefilter | " .. s:undo_ftplugin
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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