-
-
Notifications
You must be signed in to change notification settings - Fork 685
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'vim/master'
- Loading branch information
Showing
124 changed files
with
3,759 additions
and
930 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,9 @@ | |
|
||
## Reporting a vulnerability | ||
|
||
If you want to report a security issue, please use [huntr.dev](https://huntr.dev/bounties/disclose?target=https%3A%2F%2Fgithub.com%2Fvim%2Fvim) to privately disclose the issue to us. | ||
They also have rewards in the form of money, swag and CVEs. | ||
If you want to report a security issue, please privately disclose the issue to the vim-security mailing list | ||
[email protected] | ||
|
||
This is a private list, read only by the maintainers, but anybody can post, after moderation. | ||
|
||
**Please don't publicly disclose the issue until it has been addressed by us.** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
" Vim runtime support library, | ||
" runs the vim9 script version or legacy script version | ||
" on demand (mostly for Neovim compatability) | ||
" | ||
" Maintainer: The Vim Project <https://github.com/vim/vim> | ||
" Last Change: 2023 Nov 04 | ||
|
||
|
||
" enable the zip and gzip plugin by default, if not set | ||
if !exists('g:zip_exec') | ||
let g:zip_exec = 1 | ||
endif | ||
|
||
if !exists('g:gzip_exec') | ||
let g:gzip_exec = 1 | ||
endif | ||
|
||
if !has('vim9script') | ||
function dist#vim#IsSafeExecutable(filetype, executable) | ||
let cwd = getcwd() | ||
return get(g:, a:filetype .. '_exec', get(g:, 'plugin_exec', 0)) && | ||
\ (fnamemodify(exepath(a:executable), ':p:h') !=# cwd | ||
\ || (split($PATH, has('win32') ? ';' : ':')->index(cwd) != -1 && | ||
\ cwd != '.')) | ||
endfunction | ||
|
||
finish | ||
endif | ||
|
||
def dist#vim#IsSafeExecutable(filetype: string, executable: string): bool | ||
return dist#vim9#IsSafeExecutable(filetype, executable) | ||
enddef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
vim9script | ||
|
||
# Vim runtime support library | ||
# | ||
# Maintainer: The Vim Project <https://github.com/vim/vim> | ||
# Last Change: 2023 Oct 25 | ||
|
||
export def IsSafeExecutable(filetype: string, executable: string): bool | ||
var cwd = getcwd() | ||
return get(g:, filetype .. '_exec', get(g:, 'plugin_exec', 0)) | ||
&& (fnamemodify(exepath(executable), ':p:h') !=# cwd | ||
|| (split($PATH, has('win32') ? ';' : ':')->index(cwd) != -1 | ||
&& cwd != '.')) | ||
enddef | ||
|
||
# Uncomment this line to check for compilation errors early | ||
# defcompile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
" tar.vim: Handles browsing tarfiles | ||
" AUTOLOAD PORTION | ||
" Date: Jan 07, 2020 | ||
" Version: 32 | ||
" Date: Nov 05, 2023 | ||
" Version: 32a (with modifications from the Vim Project) | ||
" Maintainer: Charles E Campbell <[email protected]> | ||
" License: Vim License (see vim's :help license) | ||
" | ||
|
@@ -22,7 +22,7 @@ | |
if &cp || exists("g:loaded_tar") | ||
finish | ||
endif | ||
let g:loaded_tar= "v32" | ||
let g:loaded_tar= "v32a" | ||
if v:version < 702 | ||
echohl WarningMsg | ||
echo "***warning*** this version of tar needs vim 7.2" | ||
|
@@ -208,7 +208,16 @@ fun! tar#Browse(tarfile) | |
" call Dret("tar#Browse : a:tarfile<".a:tarfile.">") | ||
return | ||
endif | ||
if line("$") == curlast || ( line("$") == (curlast + 1) && getline("$") =~# '\c\%(warning\|error\|inappropriate\|unrecognized\)') | ||
" If there was an error message, the last line probably matches some keywords but | ||
" should also contain whitespace for readability. Make sure not to match a | ||
" filename that contains the keyword (error/warning/unrecognized/inappropriate, etc) | ||
" | ||
" FIXME:is this actually necessary? In case of an error, we should probably | ||
" have noticed in the if statement above since tar should have exited | ||
" with a non-zero exit code. | ||
if line("$") == curlast || ( line("$") == (curlast + 1) && | ||
\ getline("$") =~# '\c\<\%(warning\|error\|inappropriate\|unrecognized\)\>' && | ||
\ getline("$") =~ '\s' ) | ||
redraw! | ||
echohl WarningMsg | echo "***warning*** (tar#Browse) ".a:tarfile." doesn't appear to be a tar file" | echohl None | ||
keepj sil! %d | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.