Justin M. Keyes
2141dc2262
provider: check #Call() if g:loaded_xx_provider=2
2019-08-04 13:23:46 +02:00
Justin M. Keyes
e952b7fc2f
health.vim: check has("debug")
2019-08-04 13:23:46 +02:00
Justin M. Keyes
5e6a08f2e6
provider: skip non-provider has() feature-names
...
We don't want to retry autoload sourcing (slow) for every random has()
query that finds it way to eval_call_provider().
2019-08-04 13:23:46 +02:00
Justin M. Keyes
241956720d
provider: g:loaded_xx_provider=2 means "enabled and working"
...
Value of 1 cannot be used, because users might set that in their vimrc
to _disable_ a provider, which would confuse :checkhealth and has().
2019-08-04 13:23:46 +02:00
Justin M. Keyes
66938b928c
provider: decide status by g:loaded_xx_provider
2019-08-04 13:23:46 +02:00
Rui Abreu Ferreira
2cfe4748e5
provider: let providers decide their status
...
Instead of deciding provider status in eval_has_provider, move the
decision to the provider Vim scripts.
Previously, provider loading worked as follows:
1. eval_has_provider() verified provider availability by searching for
the provider#providername#Call function and cached this verificaion as a static
variable for some providers
2. providers short-circuited on loading to prevent the definition of the
Call function (with the exception of the node provider that did not)
This commit changes the expected interface between nvim and its
providers to facilitate provider reloading, by splitting the
verification of the provider from the availability of the Call function.
eval_has_provider() now checks for a provider#providername#enabled
variable. It is up to the provider script to set this to 0 or 1
accordingly. eval_call_provider() remains unchanged.
All providers hosting a Call function were updated to respect this.
The clipboard provider now has a Reload function to reload the
provider.
2019-08-04 13:23:46 +02:00
Jan Edmund Lazo
2860453c4f
doc: update 'shellredir' advice for powershell #10686
...
Encoding can be utf8, unicode, utf32.
User can choose to omit '-Encoding' to default to 'unicode'.
'ascii' encoding corrupts the following file:
https://www.w3.org/2001/06/utf-8-test/UTF-8-demo.html
Inspect 'foo.txt' with the following code after downloading the file.
Get-Content -Encoding UTF8 UTF-8-demo.html | Out-File -Encoding ascii foo.txt
2019-08-04 11:32:17 +02:00
Justin M. Keyes
0bb1008e7f
Merge #10683 from janlazo/vim-8.1.1796
...
vim-patch:8.1.{1237,1796}
2019-08-03 19:14:47 +02:00
Jan Edmund Lazo
5dd860fd73
vim-patch:8.1.1237: error for using "compl", reserved word in C++
...
Problem: Error for using "compl", reserved word in C++.
Solution: Rename to "complp". (suggestion by Ken Takata)
52111f8231
2019-08-03 12:38:50 -04:00
Jan Edmund Lazo
01b2dac727
vim-patch:8.1.1796: :argdo is not tested
...
Problem: :argdo is not tested
Solution: Add a test.
72e1b39111
2019-08-03 11:38:52 -04:00
Daniel Hahler
a49cf51269
build: require unibilium>=2.0 ( #10681 )
...
* build: require unibilium>=2.0
This also ports FindUnibilium to LibFindMacros, which was planned
anyway, and makes the version check easier.
With an older Unibilium our fallback code in `terminfo_from_builtin`
will not work (because it assumes the new data structures from 2.0.0 [1]),
and nvim would crash later because of `ut` being NUL.
1: 42f3cdd284
2019-08-03 15:20:28 +02:00
Daniel Hahler
ae27406db2
ci: Travis: move gcc-functionaltest-lua to 2nd stage ( #10682 )
...
Ref: https://github.com/neovim/neovim/pull/10673#issuecomment-517733843
2019-08-03 14:55:27 +02:00
Justin M. Keyes
7e8dbb5958
Merge #10678 from janlazo/vim-8.1.1187
...
vim-patch:8.1.{1187,1761,1762,1775}
2019-08-03 13:59:41 +02:00
Jan Edmund Lazo
620a906406
vim-patch:8.1.1775: error message may be empty in filetype test
...
Problem: Error message may be empty in filetype test.
Solution: Use v:exception instead. (Daniel Hahler, closs vim/vim#4744 )
eee9f65b2a
2019-08-02 19:51:04 -04:00
Jan Edmund Lazo
12fe0cf5f9
vim-patch:8.1.1762: some filetype rules are in the wrong place
...
Problem: Some filetype rules are in the wrong place.
Solution: Move to the right place. Add a few more tests.
c273405188
2019-08-02 19:48:32 -04:00
Jan Edmund Lazo
d827a750f7
vim-patch:8.1.1761: filetype "vuejs" causes problems for some users
...
Problem: Filetype "vuejs" causes problems for some users.
Solution: Rename to "vue".
4248111497
2019-08-02 19:46:34 -04:00
Jan Edmund Lazo
cdd8540a20
vim-patch:8.1.1187: cannot recognize Pipfile
...
Problem: Cannot recognize Pipfile.
Solution: Use existing filetypes. (Charles Ross, closes vim/vim#4280 )
3a4c53ba51
2019-08-02 19:44:37 -04:00
Daniel Hahler
24fb7eefaa
terminfo_start: use unibi_from_term, skip without TERM ( #10670 )
...
This is clearer/more explicit and avoids potential mismatch between what unibilium thinks vs what Nvim thinks.
For reference: e3b16d6219/uniutil.c (L203-L211)
2019-08-02 19:39:29 +02:00
Justin M. Keyes
a270c33b3a
Merge #10675 from justinmk/vim-runtime
...
fix #10572
2019-08-02 19:22:23 +02:00
Justin M. Keyes
e2e220256e
runtime/optwin.vim: missing 'previewpopup' feature
...
test_options.vim fails, so we need to disable this until the feature is
implemented.
2019-08-02 16:41:18 +02:00
Justin M. Keyes
df636003bf
doc: remove "{not available ...}" noise
2019-08-02 16:36:42 +02:00
Justin M. Keyes
9bc4f275b3
vim-patch:5477506a9f01
...
Update runtime files.
5477506a9f
NA:
vim-patch:2a9c9f6d89f1 "undo extra changes in src/Makefile"
2a9c9f6d89
2019-08-02 16:20:23 +02:00
Justin M. Keyes
7c19a4e518
vim-patch:85850f3a5ef9
...
Update runtime files
85850f3a5e
2019-08-02 16:20:22 +02:00
Justin M. Keyes
1e4e890a76
vim-patch:396e829fa355
...
Update runtime files
396e829fa3
2019-08-02 16:20:22 +02:00
Justin M. Keyes
0d852bdc69
vim-patch:6c1e1570b134
...
Update runtime files
6c1e1570b1
2019-08-02 16:20:22 +02:00
Justin M. Keyes
bd23fefb39
vim-patch:12ee7ff00b91
...
Update runtime files
12ee7ff00b
2019-08-02 16:20:22 +02:00
Justin M. Keyes
ad9b781bba
vim-patch:773a97c254d0
...
Update runtime files - Add typescript syntax and indent.
773a97c254
2019-08-02 16:20:22 +02:00
Justin M. Keyes
0414a33868
vim-patch:61da1bfa6c6b
...
Update runtime files.
61da1bfa6c
2019-08-02 16:20:22 +02:00
Justin M. Keyes
c6e4a29ad2
vim-patch:7dd64a3e57d2
...
Update runtime files.
7dd64a3e57
2019-08-02 16:20:22 +02:00
Justin M. Keyes
4ea8323667
vim-patch:68e6560b84f1
...
Update runtime files.
68e6560b84
2019-08-02 16:20:22 +02:00
Justin M. Keyes
bf6919f26b
cleanup
2019-08-02 16:20:22 +02:00
Daniel Hahler
1aedb9ed00
ci: Travis: move coverage job to first stage ( #10673 )
...
This swaps it with "gcc-32bit".
It is better to have the "coverage" job run than "gcc-32bit" in case of
flaky build failures - especially on master, since otherwise no base
coverage is available for future PRs.
2019-08-02 15:48:32 +02:00
Justin M. Keyes
7cf0119c68
Merge #10666 from justinmk/vim-runtime
...
vim-patch: runtime updates
2019-08-02 15:10:04 +02:00
Justin M. Keyes
b92a5bc3c4
Merge #10664 from janlazo/vim-8.1.1780
...
vim-patch:8.1.{1374,1780}
2019-08-02 06:01:46 +02:00
Justin M. Keyes
532ee54a42
vim-patch:a6c27c47ddf0
...
Update runtime files
a6c27c47dd
2019-08-01 23:27:26 +02:00
Justin M. Keyes
f379eac1ef
vim-patch:911ead126903
...
Update runtime files
911ead1269
NA: vim-patch:602abeb20fb7
2019-08-01 23:12:33 +02:00
Justin M. Keyes
4d830ca31b
vim-patch:62e1bb4a111e
...
Update runtime files.
62e1bb4a11
NA: vim-patch:496555fd1821
2019-08-01 22:58:20 +02:00
Justin M. Keyes
7f5402899b
vim-patch:62e1bb4a111e
...
Update runtime files.
62e1bb4a11
2019-08-01 22:52:56 +02:00
Justin M. Keyes
31a5ec23eb
vim-patch:723dd946f948
...
Update runtime files.
723dd946f9
2019-08-01 22:52:42 +02:00
Justin M. Keyes
2cdbbe50a4
vim-patch:63b74a8362b1
...
Update runtime files.
63b74a8362
2019-08-01 22:48:28 +02:00
Justin M. Keyes
41fe644124
vim-patch:26967617a30e
...
Update runtime files.
26967617a3
NA: vim-patch:55d81cd2a15d
2019-08-01 22:44:59 +02:00
Justin M. Keyes
a14fc7b159
vim-patch:f6b401090e81
...
Update runtime files
f6b401090e
2019-08-01 22:26:04 +02:00
Justin M. Keyes
47b4eb110d
vim-patch:4c92e75dd4dd
...
Update runtime files.
4c92e75dd4
vim-patch:c854898881c0
Revert change accidentally included in runtime file updates. Closes vim/vim#3998 .
c854898881
2019-08-01 16:51:53 +02:00
Justin M. Keyes
87140f234a
Merge #10646 'vim-patch: runtime patches'
2019-08-01 16:43:14 +02:00
Justin M. Keyes
5342342426
runtime: move matchit.vim to /pack/dist/opt/
...
Align matchit.vim with upstream Vim. We don't want to maintain a fork of
matchit.vim; our small changes should be sent to
https://github.com/chrisbra/matchit
2019-08-01 15:43:53 +02:00
Justin M. Keyes
1f6c9fd822
stream: log unwritten bytes, if any #10663
2019-08-01 15:26:22 +02:00
Daniel Hahler
41bb68b8e8
process_stop: uv: do not close stdin first/explicitly #10584
...
- process_stop: do not close stdin explicitly. The "close stdin" step was from
aa9cb48
, before we fixed/reworked the SIGTERM timing logic. So it's probably
outdated / no longer needed.
- win: jobstop: exit_code 15
GetExitCodeProcess appears to return the used signal.
https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getexitcodeprocess
ref #10573
2019-08-01 13:55:06 +02:00
Jan Edmund Lazo
c708567262
fileio: port hotfix from patch 8.1.1379
...
Patch 8.1.1379 includes a change to a test, added in Patch 8.1.0815.
Patch 8.1.0815 includes runtime doc changes to Blob.
Neovim does not support Blobs yet.
2019-08-01 04:35:23 -04:00
Jan Edmund Lazo
7995a5e964
vim-patch:8.1.1374: check for file changed triggers too often
...
Problem: Check for file changed triggers too often.
Solution: Don't use "b_p_ar" when it is negative.
c97582b029
2019-08-01 04:29:39 -04:00
Jan Edmund Lazo
28946c285b
lint
2019-08-01 04:20:35 -04:00