mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 21:25:04 -07:00
b329a21bd3
runtime(tar): improve the error detection
Do not rely on the fact, that the last line matches warning, error,
inappropriate or unrecognized to determine if an error occurred. It
could also be a file, contains such a keyword.
So make the error detection slightly more strict and only assume an
error occured, if in addition to those 4 keywords, also a space matches
(this assumes the error message contains a space), which luckily on Unix
not many files match by default.
The whole if condition seems however slightly dubious. In case an error
happened, this would probably already be caught in the previous if
statement, since this checks for the return code of the tar program.
There may however be tar implementations, that do not set the exit code
for some kind of error (but print an error message)? But let's keep this
check for now, not many people have noticed this behaviour until now, so
it seems to work reasonably well anyhow.
related: vim/vim#6425
fixes: vim/vim#13489
|
||
---|---|---|
.. | ||
cargo | ||
dist | ||
provider | ||
remote | ||
rust | ||
xml | ||
zig | ||
ada.vim | ||
adacomplete.vim | ||
bitbake.vim | ||
cargo.vim | ||
ccomplete.lua | ||
ccomplete.vim | ||
clojurecomplete.vim | ||
context.vim | ||
contextcomplete.vim | ||
csscomplete.vim | ||
decada.vim | ||
freebasic.vim | ||
gnat.vim | ||
gzip.vim | ||
haskellcomplete.vim | ||
health.vim | ||
htmlcomplete.vim | ||
javascriptcomplete.vim | ||
msgpack.vim | ||
netrw_gitignore.vim | ||
netrw.vim | ||
netrwFileHandlers.vim | ||
netrwSettings.vim | ||
paste.vim | ||
phpcomplete.vim | ||
provider.vim | ||
python3complete.vim | ||
python.vim | ||
pythoncomplete.vim | ||
README.txt | ||
RstFold.vim | ||
rubycomplete.vim | ||
rust.vim | ||
rustfmt.vim | ||
shada.vim | ||
spellfile.vim | ||
sqlcomplete.vim | ||
syntaxcomplete.vim | ||
tar.vim | ||
tohtml.vim | ||
tutor.vim | ||
vimexpect.vim | ||
xmlcomplete.vim | ||
xmlformat.vim | ||
zip.vim |
The autoload directory is for standard Vim autoload scripts. These are functions used by plugins and for general use. They will be loaded automatically when the function is invoked. See ":help autoload". gzip.vim for editing compressed files netrw*.vim browsing (remote) directories and editing remote files tar.vim browsing tar files zip.vim browsing zip files paste.vim common code for mswin.vim, menu.vim and macmap.vim spellfile.vim downloading of a missing spell file Omni completion files: ccomplete.vim C csscomplete.vim HTML / CSS htmlcomplete.vim HTML javascriptcomplete.vim Javascript phpcomplete.vim PHP pythoncomplete.vim Python rubycomplete.vim Ruby syntaxcomplete.vim from syntax highlighting xmlcomplete.vim XML (uses files in the xml directory)