Hirokazu Hata
996a057fb9
lua/stdlib: adjust some validation messages #11271
...
close #11271
2019-10-26 00:27:01 -07:00
Joshua Rubin
99aa166cb1
man.vim: never switch to non-man window #11286
...
In order to find if there was already an open man page, the :Man command
would cycle through each window to see if &ft=='man'. This triggers
autocmds, e.g. BufEnter, unnecessarily and can have unexpected
side-effects.
Change the logic to check each window's ft without switching to it
unless it is actually a man window.
Signed-off-by: Joshua Rubin <me@jawa.dev >
2019-10-25 09:41:22 -07:00
Jan Edmund Lazo
f3d6d8750b
vim-patch:8.1.0345: cannot get the window id associated with the location list
...
Problem: Cannot get the window id associated with the location list.
Solution: Add the "filewinid" argument to getloclist(). (Yegappan
Lakshmanan, closes vim/vim#3202 )
https://github.com/vim/vim/commit/c9cc9c78f21caba7ecb5c90403df5e19a57aa96a
2019-10-23 01:33:16 -04:00
Justin M. Keyes
9e4db2ef50
Merge #11199 from bobrippling/vim-8.1.1228
...
vim-patch:8.1.{1099,1228,1962} add 'tagfunc'
2019-10-22 20:27:35 -07:00
Rob Pilling
194f7bface
vim-patch:8.1.1228: not possible to process tags with a function
...
Problem: Not possible to process tags with a function.
Solution: Add tagfunc() (Christian Brabandt, Andy Massimino, closes vim/vim#4010 )
https://github.com/vim/vim/commit/45e18cbdc40afd8144d20dcc07ad2d981636f4c9
2019-10-22 20:13:02 +01:00
Justin M. Keyes
019c8d13dd
build/doc/CI: remove/update quickbuild references #11258
2019-10-19 18:04:08 -07:00
Justin M. Keyes
06a6828f01
Merge #11211 from jbradaric/vim-8.1.1585
...
vim-patch:8.1.{1585,1625,1723,1729}
2019-10-19 15:23:14 -07:00
Justin M. Keyes
029b828693
Merge #11249 from janlazo/vim-8.1.2151
...
vim-patch:8.1.{2151,2152,2161,2162,2175,2177,2178}
2019-10-19 14:17:22 -07:00
Daniel Hahler
3de4dc539a
vim-patch:8.1.2180: Error E303 is not useful when 'directory' is empty ( #11257 )
...
Problem: Error E303 is not useful when 'directory' is empty.
Solution: Skip the error message. (Daniel Hahler, vim/vim#5067 )
https://github.com/vim/vim/commit/00e192becd50a38cb21a1bc3f86fcc7a21f8ee88
2019-10-19 14:11:31 -07:00
Jan Edmund Lazo
437fe261ab
vim-patch:8.1.2177: Dart files are not recognized
...
Problem: Dart files are not recognized.
Solution: Add a filetype rule. (Eugene Ciurana, closes vim/vim#5087 )
https://github.com/vim/vim/commit/afbdb905c37675851e79d21239f502cd8e4ced9e
2019-10-19 11:55:32 -04:00
Jan Edmund Lazo
1e4a9f9993
vim-patch:8.1.2175: meson files are not recognized
...
Problem: Meson files are not recognized.
Solution: Add the meson filetype. (Liam Beguin , Nirbheek Chauhan,
closes vim/vim#5056 ) Also recognize hollywood.
https://github.com/vim/vim/commit/c3bf7b56f2703e2d6f36dfb05fd32b5b43ce3c3f
2019-10-18 23:23:14 -04:00
Jurica Bradaric
3b894b1cb1
vim-patch:8.1.1723: heredoc assignment has no room for new features
...
Problem: Heredoc assignment has no room for new features. (FUJIWARA Takuya)
Solution: Require the marker does not start with a lower case character.
(closes vim/vim#4705 )
https://github.com/vim/vim/commit/24582007294b0db3be9669d3b583ea45fc4f19b8
2019-10-13 11:54:54 +02:00
Jurica Bradaric
6c012b0624
vim-patch:8.1.1585: :let-heredoc does not trim enough
...
Problem: :let-heredoc does not trim enough.
Solution: Trim indent from the contents based on the indent of the first
line. Use let-heredoc in more tests.
https://github.com/vim/vim/commit/e7eb92708ec2092a2fc11e78703b5dcf83844412
2019-10-13 00:03:27 +02:00
Jan Edmund Lazo
51f2826f61
doc: update shellquote for powershell #11122
...
shellquote is not treated like shellxquote for non-quote values.
2019-10-10 01:16:02 -07:00
Jurica Bradaric
b1ada8ec21
vim-patch:8.1.1354: getting a list of text lines is clumsy
...
Problem: Getting a list of text lines is clumsy.
Solution: Add the =<< assignment. (Yegappan Lakshmanan, closes vim/vim#4386 )
https://github.com/vim/vim/commit/f5842c5a533346c4ff41ff666e465c85f1de35d5
2019-10-07 14:14:13 +02:00
Jan Edmund Lazo
d1abd6513e
vim-patch:8.1.0586: :digraph output is not easy to read
...
Problem: :digraph output is not easy to read.
Solution: Add highlighting for :digraphs. (Marcin Szamotulski, closes vim/vim#3572 )
Also add section headers for :digraphs!.
https://github.com/vim/vim/commit/eae8ae1b2b4e532b125077d9838b70d966891be3
2019-10-06 09:43:39 -04:00
Daniel Hahler
a341eb6087
win_line: update w_last_cursorline always
...
Vim patch 8.1.0856 (54d9ea6 ) caused a performance regression in Neovim,
when `set conceallevel=1 nocursorline` was used, since then due to
refactoring in 23c71d5 `w_last_cursorline` would never get updated
anymore.
Adds/uses `redrawdebug+=nodelta` for testing this.
Fixes https://github.com/neovim/neovim/issues/11100 .
Closes https://github.com/neovim/neovim/pull/11101 .
2019-10-04 08:48:57 +02:00
Daniel Hahler
382391bb2d
health: provider: skip checks with g:loaded_X_provider = 0 ( #11147 )
...
The Python provider was special (via [1]), and would continue to do
checks with `0` being set explicitly even.
This was fixed in #11044 (45447e3b6 ), ref: #11040 .
This extends it to use the same method with all providers.
1: https://github.com/neovim/neovim/pull/8047
2019-10-04 08:16:30 +02:00
Jan Edmund Lazo
efef797126
vim-patch:8.1.2103: wrong error message if "termdebugger" is not executable
...
Problem: wrong error message if "termdebugger" is not executable.
Solution: Check if "termdebugger" is executable and give a clear error
message. (Ozaki Kiichi, closes vim/vim#5000 ) Fix indents.
https://github.com/vim/vim/commit/18223a592efa4399e3951c86deeb712a13b05ca5
2019-10-01 22:27:45 -04:00
Jan Edmund Lazo
17e96d96ba
vim-patch:8.1.0514: CTRL-W ^ does not work when alternate buffer has no name
...
Problem: CTRL-W ^ does not work when alternate buffer has no name.
Solution: Use another method to split and edit the alternate buffer. (Jason
Franklin)
https://github.com/vim/vim/commit/1bbb61948342b5cf6e363629f145c65eb455c388
2019-10-01 22:27:43 -04:00
Björn Linse
dd26bd5974
screen: don't crash on invalid grid cells being recomposed
2019-09-30 19:05:54 +02:00
Daniel Hahler
179c46a016
provider#pythonx: resolve/expand exe from host var ( #11047 )
...
This reverts part of ade88fe4c [1].
This is required for `let g:python3_host_prog = 'python'` etc, where it
should get picked up from PATH.
Without this it would show:
```
- INFO: pyenv: Path: /home/user/.pyenv/libexec/pyenv
- INFO: pyenv: Root: /home/user/.pyenv
- INFO: Using: g:python3_host_prog = "python"
- ERROR: "python" was not found.
- INFO: Executable: Not found
- ERROR: Detected pip upgrade failure: Python executable can import "pynvim" but not "neovim": python
- ADVICE:
- Use that Python version to reinstall "pynvim" and optionally "neovim".
pip3 uninstall pynvim neovim
pip3 install pynvim
pip3 install neovim # only if needed by third-party software
```
Note that it additionally causes a weird error
("Detected pip upgrade failure"), due to `s:check_bin` emptying
`python_exe` (because the non-absolute file not being readable), and
`provider#pythonx#DetectByModule('pynvim', a:version)` from 75593e6fce
then just getting the value from the host var again (without actual
checks).
This is implicitly fixed via this patch now (because it is skipped), but
could need some improvement in this regard probably.
With this patch it resolves it (for a virtualenv where pynvim is not
made available intentionally):
```
- INFO: pyenv: Path: /home/daniel/.pyenv/libexec/pyenv
- INFO: pyenv: Root: /home/daniel/.pyenv
- INFO: Using: g:python3_host_prog = "python"
- WARNING: $VIRTUAL_ENV exists but appears to be inactive. This could lead to unexpected results.
- ADVICE:
- If you are using Zsh, see: http://vi.stackexchange.com/a/7654
- INFO: Executable: /home/daniel/.pyenv/shims/tmp-system-deoplete.nvim-f205aF/python
- ERROR: Command error (job=11, exit code 1): `'/home/daniel/.pyenv/shims/tmp-system-deoplete.nvim-f205aF/python' -c 'import sys; sys.path.remove(""); import neovim; print(neovim.__file__)'` (in '/home/daniel/.dotfiles/vim/plugged/deoplete.nvim')
Output: Traceback (most recent call last): File "<string>", line 1, in <module>ModuleNotFoundError: No module named 'neovim'
Stderr: Traceback (most recent call last): File "<string>", line 1, in <module>ModuleNotFoundError: No module named 'neovim'
- INFO: Python version: 3.7.4
- INFO: pynvim version: unable to load neovim Python module
- ERROR: pynvim is not installed.
Error: unable to load neovim Python module
- ADVICE:
- Run in shell: pip3 install pynvim
```
Note: this appears to display the error twice via "Output:" and
"Stderr:".
1: https://github.com/neovim/neovim/pull/8784
2019-09-30 12:52:04 +02:00
Björn Linse
c844f986d4
tree-sitter: use "module" pattern in lua source
2019-09-28 17:46:25 +02:00
Björn Linse
3ffcb477ef
tree-sitter: start docs
2019-09-28 17:46:25 +02:00
Björn Linse
f86a2c33a2
tree-sitter: simplify editing using the new old_byte_size parameter
2019-09-28 17:46:25 +02:00
Björn Linse
06ee45b9b1
tree-sitter: fix lint, delete "demo" plugin (replaced by functional tests)
2019-09-28 17:46:25 +02:00
Björn Linse
167a1cfdef
tree-sitter: improve parser API (shared parser between plugins)
2019-09-28 14:55:43 +02:00
Björn Linse
d24dec596c
tree-sitter: inspect language
2019-09-28 14:55:43 +02:00
Björn Linse
c8f861b739
tree-sitter: rename tree_sitter => treesitter for consistency
2019-09-28 14:55:43 +02:00
Björn Linse
4ea5e63aa8
tree-sitter: add basic testing on ci
...
build tree-sitter c parser on ci for testing purposes
2019-09-28 14:55:43 +02:00
Björn Linse
afba23099f
tree-sitter: support pre-registration of languages
2019-09-28 14:55:43 +02:00
Björn Linse
1e9e2451be
tree-sitter: objectify API
2019-09-28 14:55:43 +02:00
Björn Linse
005b6d638c
tree-sitter: split tree-sitter lua interface from demo code
2019-09-28 14:55:43 +02:00
Björn Linse
0e0beef85e
tree-sitter: load parsers as .so files
2019-09-28 14:31:03 +02:00
Björn Linse
cd10096386
tree-sitter: initial tree-sitter support
2019-09-28 14:31:03 +02:00
Daniel Hahler
cb25207171
vim-patch:8.0.0914: highlight attributes are always combined ( #10256 )
...
Problem: Highlight attributes are always combined.
Solution: Add the 'nocombine' value to replace attributes instead of
combining them. (scauligi, closes vim/vim#1963 )
https://github.com/vim/vim/commit/0cd2a94a4030f6bd12eaec44db92db108e33c913
Closes https://github.com/neovim/neovim/pull/10256 .
2019-09-26 00:50:54 +02:00
Justin M. Keyes
1654932498
vim-patch:8.1.2060: "precedes" in 'listchars' not used properly
...
(Credit: Zach Wegner, https://github.com/neovim/neovim/pull/11034 )
Problem: "precedes" in 'listchars' not used properly.
Solution: Correctly handle the "precedes" char in list mode for long lines.
https://github.com/vim/vim/commit/bffba7f7042f6082e75b42484b15f66087b01941
2019-09-21 22:13:55 -07:00
Zach Wegner
18e5869f56
Fix "precedes" listchar behavior in wrap mode
...
Previously, the "precedes" character would be rendered on every row
when w_skipcol > 0 (i.e., when viewing a single line longer than the
entire screen), instead of just on the first row. Make sure to only
render it on the first row in this case.
Add a test for this behavior.
Fix documentation for the "precedes" character, which erroneously
stated that it was only active when wrap mode was off.
2019-09-21 22:09:52 -07:00
Yoshio S
45447e3b64
checkhealth: skip python checks if intentionally disabled #11044
...
close #11040
2019-09-21 16:17:22 -07:00
Jan Edmund Lazo
ca11662515
vim-patch:8.0.1539: no test for the popup menu positioning
...
Problem: No test for the popup menu positioning.
Solution: Add a screendump test for the popup menu.
https://github.com/vim/vim/commit/6bb2cdfe604e51eec216cbe23bb6e8fb47810347
2019-09-21 08:43:07 -04:00
Daniel Hahler
660b452440
vim-patch:8.1.2056: "make test" for indent files doesn't cause make to fail
...
Problem: "make test" for indent files doesn't cause make to fail.
Solution: Exit the script with ":cquit". (Daniel Hahler, closes vim/vim#4949 )
https://github.com/vim/vim/commit/cd67059c0c3abf1e28aa66458abdf6f338252eb2
2019-09-18 22:59:13 +02:00
Daniel Hahler
0e75a9eead
Update runtime/indent/testdir to latest Vim runtime
...
Several runtime updates ignored the non-existing files.
2019-09-18 22:59:13 +02:00
Daniel Hahler
48b2d21d5e
vim-patch:8.1.1213: "make clean" in top dir does not cleanup indent test output
...
Problem: "make clean" in top dir does not cleanup indent test output.
Solution: Clean the indent test output. Do not rely on the vim executable
for that. (closes vim/vim#4307 )
https://github.com/vim/vim/commit/e13a3901cae0afb4d2af30d497696af08029fd81
2019-09-18 22:46:47 +02:00
Daniel Hahler
10c050caf9
vim-patch:8.1.0599: without the +eval feature the indent tests don't work
...
Problem: Without the +eval feature the indent tests don't work.
Solution: Skip the body of the tests.
https://github.com/vim/vim/commit/eeed665b0ecd917e88e3475c9615d52546aa124d
2019-09-18 22:38:37 +02:00
Daniel Hahler
865aaa031a
vim-patch:8.1.0576: indent script tests pick up installed scripts
...
Problem: Indent script tests pick up installed scripts.
Solution: Use current runtime indent scripts.
https://github.com/vim/vim/commit/30700cd5ffa258f1d684ab6b34bd03e970450dba
2019-09-18 22:38:15 +02:00
Daniel Hahler
b466f0e114
vim-patch:8.1.0545: when executing indent tests user preferences interfere
...
Problem: When executing indent tests user preferences interfere.
Solution: Add "--clean".
https://github.com/vim/vim/commit/dc2f73a6980be13c97a83047d0de50824bc0f20f
2019-09-18 22:37:54 +02:00
Daniel Hahler
7f59f5b104
vim-patch:8.1.0496: no tests for indent files
...
Problem: No tests for indent files.
Solution: Add a mechanism for running indent file tests. Add a first test
for Vim indenting.
https://github.com/vim/vim/commit/c0fe4978f2311be9a0221d4c2369251c719b399a
2019-09-18 22:37:25 +02:00
Daniel Hahler
d478542110
health#provider: fix duplicated output/stderr ( #11048 )
...
Ref: https://github.com/neovim/neovim/pull/11047#issuecomment-532268826
2019-09-18 18:21:44 +02:00
Jan Edmund Lazo
8db9e82e3e
vim-patch:8.0.1770: assert functions don't return anything
...
Problem: Assert functions don't return anything.
Solution: Return non-zero when the assertion fails.
https://github.com/vim/vim/commit/65a5464985f980d2bbbf4e14d39d416dce065ec7
2019-09-16 23:42:44 -04:00
Jan Edmund Lazo
792c290343
vim-patch:8.0.1523: cannot write and read terminal screendumps
...
Problem: Cannot write and read terminal screendumps.
Solution: Add term_dumpwrite(), term_dumpread() and term_dumpdiff().
Also add assert_equalfile().
https://github.com/vim/vim/commit/d96ff165113ce5fe62107add590997660e3d4802
2019-09-16 21:36:46 -04:00