Justin M. Keyes
b0196586de
Merge #11568 'fillchars: foldopen, foldsep, foldclose'
2019-12-26 07:06:43 +01:00
Justin M. Keyes
927a4f24e0
Merge #11612 from janlazo/clang-pvs
2019-12-26 07:02:44 +01:00
Jan Edmund Lazo
234c4a846b
os/env: fix pvs/v781
2019-12-26 00:29:15 -05:00
Jan Edmund Lazo
d6ba578ccb
misc1: fix pvs/v781
2019-12-26 00:29:15 -05:00
Jan Edmund Lazo
251177b63b
ex_getln: fix pvs/v781
2019-12-26 00:29:15 -05:00
Jan Edmund Lazo
23dbe73585
ex_docmd: fix pvs/v781
2019-12-26 00:29:15 -05:00
Jan Edmund Lazo
f6b4547598
ex_cmds: fix pvs/v781
2019-12-26 00:29:15 -05:00
Jan Edmund Lazo
fd429345c9
search: fix pvs/v1048
2019-12-26 00:29:14 -05:00
Jan Edmund Lazo
6a0242beea
quickfix: qf_parse_fmt_plus never fails
2019-12-26 00:29:14 -05:00
Jan Edmund Lazo
0be59d2b5e
hardcopy: fix pvs/v1048
2019-12-26 00:29:14 -05:00
Jan Edmund Lazo
362c3a3ccf
api/vim: fix pvs/v1048
2019-12-26 00:29:14 -05:00
Jan Edmund Lazo
35c3985da6
clang/'Dead store': remove dead code
2019-12-26 00:29:13 -05:00
Jan Edmund Lazo
c740e3b4b5
clang/'Logic error': set ret_tv if non-null
2019-12-25 17:16:39 -05:00
Matthieu Coudron
bbad324b17
fillchars: adding foldopen, foldsep, foldclose
...
You can try it with
set fillchars+=foldopen:▾,foldsep:│,foldclose:▸
2019-12-25 14:28:36 +01:00
Daniel Hahler
5f1aec5abd
Fix scripts/vim-patch.sh for Bash 4.3
...
Ref: https://github.com/neovim/neovim/pull/11514#issuecomment-568780231
2019-12-25 13:03:16 +01:00
Ashkan Kiani
07a2260e1d
LSP: Handle rpc RequestCancelled specifically. ( #11606 )
...
This was creating extra noise in errors that we should've been handling
internally.
Fixes #11515
2019-12-24 14:28:09 -08:00
Daniel Hahler
34abe8fd23
vim-patch.sh: list related missing Vim patches [ci skip] #11514
...
* scripts/vim-patch.sh: factor out _set_tokens_and_tags
This allows for caching `$tokens` and `$vim_commit_tags`, which will
become relevant with the next commit adding
`list_missing_previous_vimpatches_for_patch`.
2019-12-24 08:15:18 +01:00
Daniel Hahler
b3686b1597
system(), jobstart(): raise error on non-executable #11234
...
* tv_to_argv: error when cmd is not executable
Callers always assume that emsg was emitted:
- https://github.com/neovim/neovim/blob/57fbf288/src/nvim/eval.c#L12509
- https://github.com/neovim/neovim/blob/57fbf288/src/nvim/eval.c#L17923
- https://github.com/neovim/neovim/blob/57fbf288/src/nvim/eval.c#L18202
* test/functional/provider: display reason from missing_provider
* provider#node#Detect: skip / handle non-existing node executable
2019-12-24 07:53:56 +01:00
Carlos Hernandez
53fe877a97
snap: set "classic" confinement #11601
2019-12-24 06:43:25 +01:00
Marvim the Paranoid Android
31cfd67453
version.c: update [ci skip] #11600
...
vim-patch:8.2.0001: #endif comments do reflect corresponding #ifdef
vim-patch:8.2.0003: Build file dependencies are incomplete
vim-patch:8.2.0009: VMS: terminal version doesn't build
vim-patch:8.2.0022: click in popup window doesn't close it in the GUI
vim-patch:8.2.0029: MS-Windows: crash with empty job command
vim-patch:8.2.0031: MS-Windows: test for empty job fails
vim-patch:8.2.0032: MS-Windows: test for blank job fails
vim-patch:8.2.0034: missing check for out of memory
2019-12-24 06:41:13 +01:00
Jan Edmund Lazo
7dacab9afd
vim-patch:8.2.0033: make_extmatch() OOM #11602
...
Problem: Crash when make_extmatch() runs out of memory.
Solution: Check for NULL. (Dominique Pelle, closs vim/vim#5392 )
7c77b34967
2019-12-24 06:40:39 +01:00
Justin M. Keyes
2ef72437fc
Merge #11594 from janlazo/vim-8.0.1767
...
vim-patch:8.0.1767,8.2.0030
2019-12-23 07:16:21 +01:00
Daniel Hahler
2e280dac7d
gen_vimdoc.py: lint #11593
2019-12-23 07:08:49 +01:00
Carlos Hernandez
d6593d850a
snap: set "strict" confinement #11596
2019-12-23 07:04:14 +01:00
Jan Edmund Lazo
a16de288c3
spellfile: fix pvs/v1048
2019-12-22 22:26:05 -05:00
Jan Edmund Lazo
dd2e2f8aaa
getchar: fix pvs/v1048
2019-12-22 21:17:30 -05:00
Jan Edmund Lazo
0c70aa6509
charset: fix pvs/v1048
2019-12-22 21:14:04 -05:00
Jan Edmund Lazo
8758e96bf0
tag: fix pvs/v1048
2019-12-22 21:11:18 -05:00
Jan Edmund Lazo
33f6c25af8
eval: fix pvs/V1048
2019-12-22 21:02:49 -05:00
Jan Edmund Lazo
80ebfc304e
vim-patch:8.2.0030: "gF" does not work on output of "verbose command"
...
Problem: "gF" does not work on output of "verbose command".
Solution: Recognize " line " and translations. (closes vim/vim#5391 )
64e74c9cc7
2019-12-22 19:43:18 -05:00
Jan Edmund Lazo
bc8da6cdbe
vim-patch:8.0.1767: with 'incsearch' text may jump up and down
...
Problem: With 'incsearch' text may jump up and down. ()
Solution: Besides w_botline also save and restore w_empty_rows.
(closes # 2530)
9d34d90210
2019-12-22 11:50:16 -05:00
Björn Linse
9e9dcd4bd7
Merge pull request #11113 from bfredl/tree-sitter-query
...
tree-sitter step 2: query API and highlighting prototype
2019-12-22 13:47:45 +01:00
Björn Linse
440695c296
tree-sitter: implement query functionality and highlighting prototype [skip.lint]
2019-12-22 12:51:46 +01:00
Björn Linse
c21511b2f4
tree-sitter: fix prototypes (to be upstreamed)
2019-12-22 11:57:19 +01:00
Björn Linse
f486d2145a
tree-sitter: fix relative paths in unicode/ subdir
2019-12-22 11:56:13 +01:00
Daniel Hahler
e1d63c180c
tests: ex_terminal_spec: retry ":terminal (with fake shell)" ( #11588 )
...
Flaky failure (Travis CI, macOS):
[ RUN ] :terminal (with fake shell) works with gf: 10518.41 ms FAIL
test/functional/terminal/ex_terminal_spec.lua:248: Row 1 did not match.
Expected:
|*^ready $ echo "scripts/shadacat.py" |
|* |
|*[Process exited 0] |
|:terminal echo "scripts/shadacat.py" |
Actual:
|*^ |
|*[Process exited 0] |
|* |
|:terminal echo "scripts/shadacat.py" |
To print the expect() call that would assert the current screen state, use
screen:snapshot_util(). In case of non-deterministic failures, use
screen:redraw_debug() to show all intermediate screen states.
stack traceback:
test/functional/ui/screen.lua:579: in function '_wait'
test/functional/ui/screen.lua:361: in function 'expect'
test/functional/terminal/ex_terminal_spec.lua:248: in function <test/functional/terminal/ex_terminal_spec.lua:245>
2019-12-22 11:23:39 +01:00
Björn Linse
79bd8d2ab6
tree-sitter: update vendored tree-sitter runtime
...
tree-sitter/tree-sitter commit edb569310005c66838b7d69fa60850acac6abeee
Included files are:
lib/include/tree-sitter/*.h
lib/src/*.[ch]
lib/src/unicode/*
LICENSE
2019-12-22 10:35:00 +01:00
Justin M. Keyes
781c708c27
Merge #11396 'gen_vimdoc.py: mpack result' [ci skip]
2019-12-22 05:40:31 +01:00
Justin M. Keyes
9ea7aeb308
gen_vimdoc.py: rename for clarity
...
- render_para => fmt_node_as_vimhelp
- Inline parse_parblock() in fmt_node_as_vimhelp()
2019-12-21 20:36:00 -08:00
Justin M. Keyes
4657819e80
gen_vimdoc.py: mpack: collect functions in 1 dict
...
All Nvim API, core Vimscript, and core Lua functions are globally
unique, so there is no need for per-module nested dicts.
BEFORE (generated mpack structure):
[
{
"buffer.c": {
"nvim__buf_stats": { ... },
...
},
"window.c": {
"nvim_win_close": { ... },
...
},
...
}
]
AFTER (generated mpack structure):
[
{
"nvim__buf_stats": {
...
},
"nvim_buf_attach": {
...
},
"nvim_tabpage_set_var": {
...
},
"nvim_ui_attach": {
...
},
"nvim_win_close": {
...
}
}
]
2019-12-21 20:36:00 -08:00
Justin M. Keyes
f968dad3bf
gen_vimdoc.py: fix "seealso", "xrefs"
...
- Also fix xrefs ("Deprecated" section)
- Fix "Deprecated" rendering by a weird hack (see comment).
- Eliminate unnecessary use of render_para()
2019-12-21 20:36:00 -08:00
Justin M. Keyes
62e365f577
gen_vimdoc.py: mpack: exclude deprecated functions
...
The `mpack` variable was a tuple, which manifests as an array in the
generated msgpack structure.
- Removes noise from the mpack data (deprecated functions are
deprecated).
- Eliminates 1 level of nesting.
BEFORE:
[
{
"buffer.c": [
{
"nvim__buf_stats": { ... },
...
},
{
"buffer_del_line": { ... },
...
},
],
...
}
]
AFTER:
[
{
"buffer.c": {
"nvim__buf_stats": { ... },
...
},
...
]
2019-12-21 20:36:00 -08:00
Justin M. Keyes
481da1ce40
gen_vimdoc.py: fix mpack generator
...
- make parameters_doc a dict intead of a list
BEFORE:
"parameters_doc": [
{
"buffer": "Buffer handle, or 0 for current buffer"
}
],
AFTER:
"parameters_doc": {
"buffer": "Buffer handle, or 0 for current buffer"
},
- make "return", "seealso", lists instead of strings
2019-12-21 20:36:00 -08:00
Justin M. Keyes
01adb81c55
gen_vimdoc.py: DRY
2019-12-21 20:36:00 -08:00
Jelte Fennema
c60f656839
termdebug.vim: Comment out Winbar related things #11552
2019-12-22 04:45:11 +01:00
Daniel Hahler
64248e64a0
tests: sync Test_undojoin_redo from Vim #11589
...
This was not added in e0e482589
with Vim patch 8.0.0205.
2019-12-22 04:41:11 +01:00
Jan Edmund Lazo
138480939a
vim-patch:8.2.0025: repeated word in comment ( #11586 )
...
Problem: Repeated word in comment.
Solution: Remove one. (Rene Nyffenegger, closes vim/vim#5384 )
fe72d08400
2019-12-21 13:55:14 +01:00
Ashkan Kiani
ee7ac469c6
LSP: Use async completion for omnifunc. ( #11578 )
2019-12-20 22:49:29 -08:00
Daniel Hahler
b2443361ca
build: DownloadAndExtractFile.cmake: retry status_code=7 #11582
...
Retry downloads with "Couldn't connect to server" errors.
Ref: https://lgtm.com/projects/g/neovim/neovim/logs/rev/pr-ca2f193a91f02881deb637f18694818bda49a7ed/lang:cpp/stage:Build%20master_026ba804d173c41ab99ee270c93f7975c1d6d713
2019-12-21 06:39:26 +01:00
Matthieu Coudron
416de695f9
Merge pull request #11577 from janlazo/vim-8.2.0019
...
vim-patch:8.2.{19,24}
2019-12-20 17:25:43 +01:00