Commit Graph

16779 Commits

Author SHA1 Message Date
shade-of-noon
71d4f5851f
man.vim: Use page title instead of full path. (#13353)
In commit 63f0ca3263, `tagfunc` was introduced to
`runtime/autoload/man.vim`. Nonetheless the tag function instead
of using a short buffer name (e.g. `man://foo(3)`) uses the full
path to the man page (e.g. `man:///usr/share/.../foo.3.gz`). This
behaviour is inconsistent with `:Man!`, thus this commit.

Closes #13334
2020-11-24 09:48:06 +01:00
saadparwaiz1
60158dfb81
checkhealth: support virtual env dir with spaces 2020-11-24 09:39:11 +01:00
Thomas Vigouroux
dd876a1548
Merge pull request #13322 from teto/remove_curwin
refactor: pass window to was_set_insecurely
2020-11-24 07:10:55 +01:00
Matthieu Coudron
7eb0c16dc8 fix(fold): use Folded highlight even with spell on
Partially addresses https://github.com/neovim/neovim/issues/12982. It's
more a quickfix while reworking folds.
2020-11-23 21:06:56 +01:00
Matthieu Coudron
4f1fc0f6d5 refactor: pass window to was_set_insecurely
working on get_foldtext and wanted to get rid of the curwin backup/restore.
Turns out it's not possible else f_foldtext is run on the same window.
Kept the cleanup anyway.
2020-11-23 21:06:56 +01:00
Thomas Vigouroux
2d36b62eda
Merge pull request #13270 from vigoux/ts-range-ranges
treesitter: allow table to be used as ranges
2020-11-23 18:42:08 +01:00
James McCoy
fb52790d1c
Merge pull request #13358 from jamessan/ubuntu-20.04-gha 2020-11-23 09:27:35 -05:00
Jan Edmund Lazo
b155e6b54c
Merge pull request #11148 from janlazo/vim-8.0.1455
vim-patch:8.0.1455,8.1.{2115,2361}
2020-11-23 09:19:11 -05:00
Thomas Vigouroux
52d76f0a32
fix(treesitter): allow ranges in set_included_ranges 2020-11-23 15:09:32 +01:00
Thomas Vigouroux
9ff6760b2d
treesitter: refactor some things 2020-11-23 14:56:27 +01:00
James McCoy
80d1c4da5f
ci: Only try installing python-pynvim if Py2 pip is present 2020-11-23 08:43:37 -05:00
James McCoy
1e7d937e16
GHA: Switch to ubuntu-20.04 image for Linux
Stop explicitly installing Ubuntu's python package, since most of the
Python 2 packages (and importantly pip/setuptools) have been removed in
this Ubuntu version.
2020-11-23 08:42:24 -05:00
James McCoy
029b5d036d
Merge pull request #13354 from jamessan/ea.skip-providers 2020-11-23 08:37:04 -05:00
Jan Edmund Lazo
dd3583836b
vim-patch:8.1.2361: MS-Windows: test failures related to VIMDLL
Problem:    MS-Windows: test failures related to VIMDLL.
Solution:   Adjust code and tests. (Ken Takata, closes vim/vim#5283)
310c32e892
2020-11-23 07:45:24 -05:00
Jan Edmund Lazo
1aae464222
vim-patch:8.1.2115: MS-Windows: shell commands fail if &shell contains a space
Problem:    MS-Windows: shell commands fail if &shell contains a space.
Solution:   Use quotes instead of escaping. (closes vim/vim#4920)
2efc44b3f0

Always double-quote &shell if it contains a space.
Neovim does not support escaping space with backslash, unlike Vim.

N/A patches for version.c:

vim-patch:8.0.1455: if $SHELL contains a space then 'shell' is incorrect

Problem:    If $SHELL contains a space then the default value of 'shell' is
            incorrect. (Matthew Horan)
Solution:   Escape spaces in $SHELL. (Christian Brabandt, closes vim/vim#459)
4bfa8af141

vim-patch:8.2.1194: test failure because shell prompt differs

Problem:    Test failure because shell prompt differs.
Solution:   Set the shell prompt.
a4dc6f92bb
2020-11-23 07:45:24 -05:00
Thomas Vigouroux
43ec616414
Merge pull request #13252 from nvim-treesitter/language-tree
Language tree
2020-11-23 10:44:45 +01:00
Steven Sojka
1a631026a9
feat(treesitter): add language tree
Implement the LanguageTree structure to enable language injection.

This is done be removing the old Parser metatable and replacing by the
new structure, with the same API (almost).

Some noticeable differences :
  - `parser:parse()` now returns a table of trees
  - There is no incremental parsing for child (injected) languages

Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>
2020-11-23 08:06:17 +01:00
James McCoy
e26d074fed
Add eap->skip checks to script_host_{execute_file,do_range}
As a safety measure, return immediately from these functions if
eap->skip is set.  This is set when VimL is being parsed, to skip past
dead code, and should not be executed.
2020-11-22 22:48:04 -05:00
James McCoy
503e758a2f
do_one_cmd: Remove :pyxdo/:pyxfile from "handle <bar>" switch
In 8f288698e4, these commands were
incorrectly added to the switch that determines whether a command needs
to parse for "|" on their own when ea.skip is set.

This means that "if 0 | pyxfile foo.py | endif" would execute foo.py
when it should do nothing.  Removing them from the switch skips to the
end of `do_one_cmd()`, avoiding running any script.
2020-11-22 22:46:51 -05:00
Jan Edmund Lazo
cd691f2b6f
Merge pull request #13333 from adrian5/filetype-xml
runtime: Patch xml, xmllint, xmlformat filetypes
2020-11-22 22:01:15 -05:00
Jan Edmund Lazo
ee8f530b40
Merge pull request #13348 from adrian5/filetype-gitconfig
runtime: Patch gitconfig.vim syntax
2020-11-22 21:41:34 -05:00
Jan Edmund Lazo
093c44d697
Merge pull request #13351 from janlazo/vim-8.1.1598
vim-patch:8.1.{1598,1601,2332},8.2.2032
2020-11-22 19:42:28 -05:00
adrian5
2d35706b97 xml.vim: patch runtime/syntax to 4ceaa3a6e0b8cb299
vim/vim@4ceaa3a6e0
2020-11-22 22:47:39 +01:00
adrian5
f1b826778e xml.vim: patch runtime/syntax to 96f45c0b6fc9e9d40
vim/vim@96f45c0b6f
2020-11-22 22:45:05 +01:00
adrian5
4230c54660 xml.vim: patch runtime/indent to 4ceaa3a6e0b8cb299
vim/vim@4ceaa3a6e0
2020-11-22 22:42:02 +01:00
adrian5
e175cebf17 xml.vim: patch runtime/indent to 96f45c0b6fc9e9d40
vim/vim@96f45c0b6f
2020-11-22 22:40:08 +01:00
adrian5
fad90537c2 xmllint.vim: patch runtime/compiler to 1c6737b20a5
vim/vim@1c6737b20a
2020-11-22 22:36:17 +01:00
Jan Edmund Lazo
6068b907cb
Merge pull request #13345 from shade-of-noon/lingering-e145
Remove leftover handling of restricted mode.
2020-11-22 16:11:22 -05:00
James McCoy
5705bb1250
Merge pull request #13352 from jamessan/isCI
test: Add GitHub actions support to helpers.isCI
2020-11-22 15:35:09 -05:00
Jan Edmund Lazo
15e5acada9
vim-patch:8.1.2332: missing file in refactoring
Problem:    Missing file in refactoring.
Solution:   Update missing file.
556ae8ea28
2020-11-22 15:07:06 -05:00
Edwin Pujols
4d4d77a3c4 po: Remove E145 error message. 2020-11-22 15:46:47 -04:00
Edwin Pujols
070d7c2950 runtime: Remove error handling for E145.
Restricted mode (-Z) has been removed per #11996.
Some runtime files had lingering error handling (error
identifier `E145`) so I cleaned them up.
2020-11-22 15:46:47 -04:00
James McCoy
4ad7092abf
test: Add GitHub actions support to helpers.isCI 2020-11-22 14:41:55 -05:00
Jan Edmund Lazo
e2a2efc432
vim-patch:8.2.2032: cabalconfig and cabalproject filetypes not recognized
Problem:    Cabalconfig and cabalproject filetypes not recognized.
Solution:   Detect more cabal files. (Marcin Szamotulski, closes vim/vim#7339)
dcbab75db3

N/A patches for version.c:

vim-patch:8.1.1598: update to test file missing

Problem:    Update to test file missing.
Solution:   Update the popup window test file.
53a95d6584

vim-patch:8.1.1601: missing changes to popup window test file

Problem:    Missing changes to popup window test file.
Solution:   Add those changes.
8da4181631
2020-11-22 13:30:38 -05:00
adrian5
fc0f57228d xmlformat.vim: patch runtime/autoload to eab6dff19
vim/vim@eab6dff19f
2020-11-22 18:05:02 +01:00
adrian5
67612b1766 xmlformat.vim: patch runtime/autoload to 96f45c0b6
vim/vim@96f45c0b6f
2020-11-22 18:00:23 +01:00
Jan Edmund Lazo
7dfeadb0fc
Merge pull request #13347 from janlazo/vim-8.1.0650
vim-patch:8.1.0650,8.2.{1216,1217}
2020-11-22 00:03:52 -05:00
Jan Edmund Lazo
4c14410af6
vim-patch:8.2.1217: startup test depends on random source file
Problem:    Startup test depends on random source file.
Solution:   Write a test file to find quickfix errors in.
1e1f612bd4

N/A patches for version.c:

vim-patch:8.2.1216: startup test fails

Problem:    Startup test fails.
Solution:   Adjust expected values for deleted lines.
b6e4e4c6f7
2020-11-21 22:45:46 -05:00
Jan Edmund Lazo
485e5022fc
test/old: cherry-pick patch 8.2.0509 for Test_q_arg() 2020-11-21 22:45:39 -05:00
Jan Edmund Lazo
e632e30b8a
test/old: cherry-pick patch 8.1.2373 for test_startup.vim 2020-11-21 22:45:39 -05:00
adrian5
04463f027a gitconfig.vim: patch runtime/syntax to c08ee7476b1
vim/vim@c08ee7476b
2020-11-22 04:43:16 +01:00
adrian5
b0b57a2a6a gitconfig.vim: patch runtime/syntax to 5be4ceecea5
vim/vim@5be4ceecea
2020-11-22 04:34:44 +01:00
Jan Edmund Lazo
c4cef4ec93
vim-patch:8.1.0650: command line argument -q [errorfile] is not tested
Problem:    Command line argument -q [errorfile] is not tested.
Solution:   Add a test. (Dominique Pelle, closes vim/vim#3730)
54948183d2
2020-11-21 22:28:26 -05:00
Jan Edmund Lazo
74eed35f95
Merge pull request #13338 from shade-of-noon/patch-1
Restricted mode (-Z) lingering references.
2020-11-21 21:02:16 -05:00
Jan Edmund Lazo
185732a1f8
Merge pull request #13340 from janlazo/vim-8.2.2025
vim-patch:8.1.1749,8.2.{579,2025,2027,2028,2029}
2020-11-21 18:20:44 -05:00
Jan Edmund Lazo
297567780e
eval: use VAR_UNLOCKED enum, not the direct value 2020-11-21 15:35:05 -05:00
Jan Edmund Lazo
ce3668ed39
vim-patch:8.2.2027: Coverity warnts for uninitialized field
Problem:    Coverity warnts for uninitialized field.
Solution:   Set "v_lock".
9681f71392
2020-11-21 15:35:05 -05:00
Jan Edmund Lazo
5a4f049c38
vim-patch:8.2.2029: Coverity warns for not checking return value
Problem:    Coverity warns for not checking return value.
Solution:   Check that u_save_cursor() returns OK.
5546688fb6
2020-11-21 15:35:04 -05:00
Jan Edmund Lazo
5ea38abd53
vim-patch:8.2.2028: Coverity warns for using an uninitialized variable
Problem:    Coverity warns for using an uninitialized variable.
Solution:   Initialize to NULL.
896ad2c33e

N/A patches for version.c:

vim-patch:8.1.1749: Coverity warns for using negative index

Problem:    Coverity warns for using negative index.
Solution:   Move using index inside "if".
736cd2cfbe

vim-patch:8.2.0579: Coverity warns for unused value

Problem:    Coverity warns for unused value.
Solution:   Change order and use "else if".
4d5d0dfe94

vim-patch:8.2.2025: Amiga: Not all colors are used on OS4

Problem:    Amiga: Not all colors are used on OS4.
Solution:   Adjust the #ifdef to include __amigaos4__. (Ola Söder,
            closes vim/vim#7328)
2d718267f4
2020-11-21 15:34:44 -05:00
Jan Edmund Lazo
e192a4600a
Merge pull request #13307 from janlazo/vim-8.1.0777
vim-patch:8.1.{323,777,933,938},8.2.{178,248,547,581,592,646,658,793,1608,1975,1991,1992,1993,1994,1998,1999,2003,2007,2008,2009}
2020-11-21 10:52:16 -05:00