Thomas Vigouroux
22ef4071f0
Merge pull request #14197 from theHamsta/file-handles-modeline
...
Fix #14192 : Handle IO errors and close files in query.lua
2021-04-02 16:50:28 +02:00
Stephan Seitz
43eb22d4c9
Fix #14192 : Handle IO errors and close files in query.lua
2021-04-02 16:21:49 +02:00
Thomas Vigouroux
f2df01900e
Merge pull request #14188 from mfussenegger/treesitter-0194
...
treesitter: Update to 0.19.4+2
2021-04-02 15:50:46 +02:00
Thomas Vigouroux
bfaf42a621
Merge pull request #14039 from theHamsta/fix-field-introspection
...
Fix(treesitter): Make treesitter.inspect_lang include last field name
2021-04-02 15:46:01 +02:00
Jan Edmund Lazo
cf6c23fb0f
Merge pull request #14273 from janlazo/clang-warnings
...
clang: resolve logic error and dead store warnings
2021-04-02 09:21:25 -04:00
Jan Edmund Lazo
4f3396e128
clang/'Logic error': assert nonnull p_extra
2021-04-02 08:43:51 -04:00
Jan Edmund Lazo
49706a1842
clang/'Logic error': fix loop cond to avoid nullptr deref
...
nvim_set_decoration_provider() has insufficient null checks.
2021-04-02 08:38:37 -04:00
Jan Edmund Lazo
4d396271e1
clang/API: copy "" if orig_save is NULL
...
orig_save can be NULL if ExpandOne() is misused
if ExpandOne() is first called with mode "WILD_CANCEL" or "WILD_APPLY"
before other modes.
2021-04-02 08:30:16 -04:00
Jan Edmund Lazo
5bfad093b2
clang/'Dead store': remove dead assign in msg_may_trunc
...
Evaluating the expression without assignment is enough.
2021-04-02 08:23:41 -04:00
Jan Edmund Lazo
6d34b0b702
clang/'Dead store': do not assign fnamelen
...
Vim hasn't changed this line in buf_modname().
Assigning a value to fnamelen is useless
when evaluating strlen() is sufficient for the condition check.
2021-04-02 08:23:41 -04:00
Jan Edmund Lazo
484370f206
clang/'Logic error': cmd_source_buffer() requires nonnull param
2021-04-02 08:23:40 -04:00
Jan Edmund Lazo
ba3d626efb
clang/'Logic error': avoid nullptr deref
...
mouse_find_win() can return NULL.
2021-04-02 08:23:40 -04:00
Jan Edmund Lazo
5bf94259c1
clang/'Logic error': set vcol in do_put()
2021-04-02 08:23:40 -04:00
Thomas Vigouroux
3f7cd18c4a
Merge pull request #14218 from steelsojka/bugfix/check-queries-exist
...
fix(treesitter): check highlight queries exist
2021-04-02 05:24:49 +02:00
Kevin Svetlitski
da31f1c7dd
doc: Fix typo in the help for <Cmd> where lhs was used instead of rhs ( #14272 )
2021-04-01 21:50:02 -04:00
Michael Lingelbach
a03be1e44f
Merge pull request #14271 from mjlbach/feature/lsp_cwd
...
lsp: allow launching language servers with uv_spawn using cwd arg
2021-04-01 17:01:51 -07:00
Michael Lingelbach
3b01dd4183
lsp: allow launching language servers with uv_spawn using cwd arg
2021-04-01 14:24:37 -07:00
Jan Edmund Lazo
0bf24d3eb1
Merge pull request #14270 from janlazo/vim-8.2.2678
...
vim-patch:8.1.0986,8.2.{2678,2683,2686}
2021-04-01 16:55:50 -04:00
Jan Edmund Lazo
7959aaf781
vim-patch:8.2.2686: status line is not updated when going to cmdline mode
...
Problem: Status line is not updated when going to cmdline mode.
Solution: Redraw status lines if 'statusline' is set and going to status
line mode. (based on patch from Justin M. Keyes et al.,
closes vim/vim#8044 )
ce0b75711a
2021-04-01 15:05:10 -04:00
Jan Edmund Lazo
b120bb8ea9
vim-patch:8.1.0986: rename() is not propertly tested
...
Problem: rename() is not propertly tested.
Solution: Add tests. (Dominique Pelle, closes vim/vim#4061 )
ef8c956172
Skip Test_rename_fails() because 'blob' feature is not ported yet.
N/A patches for version.c:
vim-patch:8.2.2678: test for 'autoshelldir' does not reset the option
Problem: Test for 'autoshelldir' does not reset the option.
Solution: Reset the option after testing.
82820d9bf1
vim-patch:8.2.2683: build failure without the +eval feature
Problem: Build failure without the +eval feature.
Solution: Add #ifdef.
b91d3f857f
2021-04-01 11:58:02 -04:00
Jan Edmund Lazo
cee19696b6
Merge pull request #14222 from janlazo/v8.2.2655
...
vim-patch:8.2.{2655,2656}
2021-04-01 11:38:07 -04:00
Jan Edmund Lazo
6e9e8eb382
test/old/win: debug Test_w_arg
2021-04-01 10:45:56 -04:00
Jan Edmund Lazo
3784827f8d
vim-patch:8.2.2656: some command line arguments and regexp errors not tested
...
Problem: Some command line arguments and regexp errors not tested.
Solution: Add a few test cases. (Dominique Pellé, closes vim/vim#8013 )
a2b3e7dc92
Cherry-pick Test_t_arg() from patch v8.2.0509.
2021-04-01 07:23:04 -04:00
Jan Edmund Lazo
3b04ba7544
vim-patch:8.2.2655: The -w command line argument doesn't work
...
Problem: The -w command line argument doesn't work.
Solution: Don't set 'window' when set with the -w argument. (closes vim/vim#8011 )
0a1a6a1aa4
Cherry-pick Test_w_arg() from patch v8.2.0509.
2021-04-01 07:23:04 -04:00
Michael Lingelbach
3d25a72a60
Merge pull request #14264 from mjlbach/feature/handle_reloading_buffer
...
lsp: add on_reload callback for buffer edits outside of neovim
2021-04-01 01:08:39 -07:00
Michael Lingelbach
f738f089da
Merge pull request #14262 from mjlbach/feature/lsp_did_save_autocommand
...
lsp: clear did_save handler autocommand on each attach
2021-04-01 00:53:47 -07:00
Michael Lingelbach
5dfa937e4a
Merge pull request #14266 from mjlbach/fix/rename_workspace_symbol_request
...
lsp: fix textDocument/workspaceSymbol -> workspace/symbol
2021-04-01 00:37:28 -07:00
Michael Lingelbach
f87ae324bb
lsp: fix textDocument/workspaceSymbol -> workspace/symbol
2021-03-31 23:53:07 -07:00
Michael Lingelbach
92e106ba23
lsp: add on_reload callback for buffer edits outside of neovim
2021-03-31 22:41:00 -07:00
Michael Lingelbach
08941e163e
lsp: clear did_save handler autocommand on each attach
2021-03-31 20:23:17 -07:00
Jan Edmund Lazo
a177820420
Merge pull request #14259 from janlazo/fix-dictwatcherdel-crash
...
Fix dictwatcherdel crash
2021-03-31 19:22:11 -04:00
Jan Edmund Lazo
5e4fb9a7dd
os/win: fix build failure
2021-03-31 17:46:43 -04:00
Thomas Vigouroux
d55a69168f
Merge pull request #14245 from tjdevries/tjdevries/ts_override_hl
...
ts: Add per-language highlight links
2021-03-31 19:57:50 +02:00
TJ DeVries
d50f99f08b
fixup: remove unused test function
2021-03-31 18:09:03 +02:00
TJ DeVries
06c065469b
ts: Add per-language highlight links
2021-03-31 18:09:00 +02:00
Thomas Vigouroux
94c2ce2ce4
Merge pull request #14252 from tjdevries/tjdevries/ts_query_overrides
...
ts: Add per-language query overriding
2021-03-31 17:59:42 +02:00
Daniel Hahler
1c5e347b8c
more tests
2021-03-30 21:55:51 -04:00
Daniel Hahler
d6cac809b0
tv_dict_watcher_notify: any_needs_free
2021-03-30 21:55:51 -04:00
Daniel Hahler
aca002e7d5
test
2021-03-30 21:55:51 -04:00
Daniel Hahler
7268d49c50
tv_dict_watcher_remove: delay freeing with busy queue
2021-03-30 21:55:50 -04:00
erw7
36caafeb28
Change QUEUE_FOREACH macro to use while instead of for
2021-03-30 21:55:50 -04:00
Daniel Hahler
4c76b1e981
Test and initial fix for crash with dictwatcherdel
...
Fixes https://github.com/neovim/neovim/issues/11188 .
2021-03-30 21:55:50 -04:00
Jan Edmund Lazo
c20ae3aadb
Merge pull request #14251 from janlazo/vim-8.1.1193
...
vim-patch:8.1.{936,1193}
2021-03-30 21:51:51 -04:00
Jan Edmund Lazo
608c03298a
vim-patch:8.1.0936: may leak memory when using 'vartabstop'
...
Problem: May leak memory when using 'vartabstop'. (Kuang-che Wu)
Solution: Fix handling allocated memory for 'vartabstop'. (closes vim/vim#3976 )
55c77cf2ea
2021-03-30 19:56:13 -04:00
Michael Lingelbach
db47cf8153
Merge pull request #14233 from mjlbach/disable_utf16_conversion
...
lsp: use utf-8 when utf-16 not requested
2021-03-30 14:37:55 -07:00
Michael Lingelbach
0cadab1412
lsp: use utf-8 when utf-16 not requested
2021-03-30 14:14:09 -07:00
TJ DeVries
240cec9192
ts: Add language version to vim.treesitter ( #14255 )
2021-03-30 16:40:29 -04:00
TJ DeVries
d6209a7b84
fixup: Add a test and it is so pretty
2021-03-30 10:57:38 -04:00
TJ DeVries
04fb94cd80
ts: Add per-language query overriding
2021-03-30 08:25:11 -04:00
Jan Edmund Lazo
e491e77498
vim-patch:8.1.1193: typos and small problems in test files
...
Problem: Typos and small problems in test files.
Solution: Small improvements.
037c54f261
Include unmerged patch v8.0.1200 changes
because this patch depends on `set beloff=all` removed in 1 test.
2021-03-30 06:49:37 -04:00