Commit Graph

17851 Commits

Author SHA1 Message Date
erw7
8ed0a0d4db
Merge pull request #14094 from erw7/improve-get-bg
tui: improve support for tmux, GNU Screen
2021-04-04 12:03:33 +09:00
Jan Edmund Lazo
0dfb4e2765
Merge pull request #14282 from janlazo/vim-8.2.2695
vim-patch:8.2.{2695,2697,2700,2701,2702}
2021-04-03 21:09:26 -04:00
Jan Edmund Lazo
53cceda52d
vim-patch:8.2.2702: compiler completion test fails when more scripts are added
Problem:    Compiler completion test fails when more scripts are added.
Solution:   Add a more generic pattern.
c17ba791a9
2021-04-03 20:31:17 -04:00
Jan Edmund Lazo
ffef1519ca
vim-patch:8.2.2697: function list test fails
Problem:    Function list test fails.
Solution:   Add missing function. (Yegappan Lakshmanan)
0df6030145
2021-04-03 20:26:05 -04:00
Jan Edmund Lazo
3a623fd5cf
vim-patch:8.2.2695: cursor position reset with nested autocommands
Problem:    Cursor position reset with nested autocommands.
Solution:   Only check and reset line numbers for not nested autocommands.
            (closes vim/vim#5820)
1e6bbfb560

N/A patches for version.c:

vim-patch:8.2.2700: nested autocmd test fails sometimes

Problem:    Nested autocmd test fails sometimes.
Solution:   Wait for the job to finish.
6437475ffb

vim-patch:8.2.2701: order of removing FORTIFY_SOURCE is wrong

Problem:    Order of removing FORTIFY_SOURCE is wrong.
Solution:   Use the more specific pattern first.
26f201345d
2021-04-03 20:25:59 -04:00
Lewis Russell
d82b599ea5 vim-patch:8.1.1899: sign_place() does not work as documented
Problem:    sign_place() does not work as documented.
Solution:   Make accept line numbers like line(). (Yegappan Lakshmanan,
            closes #4848)
2021-04-03 23:56:55 +01:00
Lewis Russell
5257bce979 vim-patch:8.1.1682: placing a larger number of ...
...signs is slow

Problem:    Placing a larger number of signs is slow.
Solution:   Add functions for dealing with a list of signs. (Yegappan
            Lakshmanan, closes #4636)
2021-04-03 23:56:54 +01:00
Lewis Russell
0b7e5eeb62 vim-patch:8.1.1631: displaying signs is inefficient
+ support for neovim's dynamic width signcolumn

Problem:    Displaying signs is inefficient.
Solution:   Avoid making multiple calls to get information about a placed
            sign. (Yegappan Lakshmanan, closes #4586)
2021-04-03 23:39:56 +01:00
Björn Linse
804ea22944
Merge pull request #14226 from bfredl/luarefcount
lua: track reference ownership with ASAN when present
2021-04-03 17:48:39 +02:00
Björn Linse
2df527e1ff test/lsp: disable tracking in LSP tests (here be dragons) 2021-04-03 16:27:58 +02:00
Björn Linse
7e799502e5 luaref: simplify handling of table callables and fix leak in vim.fn.call(table)
I AM THE TABLE
2021-04-03 16:27:58 +02:00
Björn Linse
623fe4dc7e luaref: free decoration providers 2021-04-03 16:27:58 +02:00
Björn Linse
a0b7bb4153 luaref: free all references in buffer_updates 2021-04-03 16:27:58 +02:00
Björn Linse
eae4b1e5c2 luaref: fix leaks for global luarefs 2021-04-03 16:27:58 +02:00
Björn Linse
5ed383057b lua: track reference ownership with ASAN when present 2021-04-03 16:27:58 +02:00
Jan Edmund Lazo
abdda66410
vim-patch:8.2.2694: when 'matchpairs' is empty every character beeps (#14279)
Problem:    When 'matchpairs' is empty every character beeps. (Marco Hinz)
Solution:   Bail out when no character in 'matchpairs' was found.
            (closes vim/vim#8053)  Add assert_nobeep().
5b8cabfef7
2021-04-03 08:49:39 -04:00
erw7
581b2bcde0 screen: fix problem with p_ch
When the screen is resized, p_ch is not re-set to the appropriate value.
As a result, access to invalid addresses was occurring.
2021-04-03 15:27:46 +09:00
chentau
7602c56050 extmark: fixes for noexpandtab and retab 2021-04-02 16:21:46 -07:00
Björn Linse
6db3ba9df2
Merge pull request #14027 from dylanarmstrong/fix/13955-empty-paste-in-term-segfault
fix: segfault when pasting in term with empty buffer
2021-04-02 23:15:43 +02:00
Dylan Armstrong
42d2bbe7d0
chore: move check for paste size 2021-04-02 12:49:36 -05:00
Steven Sojka
8bea39f372 feat(treesitter): allow injections to be configured through directives 2021-04-02 12:48:16 -05:00
Jan Edmund Lazo
dde89730b4
vim-patch:8.2.2690: PowerShell files are not recognized (#14276)
Problem:    PowerShell files are not recognized.
Solution:   Recognize several PowerShell extension. (Heath Stewart,
            closes vim/vim#8051)
ef38bcf051

N/A patches for version.c:

vim-patch:8.2.2689: tiny build fails

Problem:    Tiny build fails.
Solution:   Add #ifdef around use of p_stl.
160a2b4dac

vim-patch:8.2.2691: autoconf may mess up compiler flags

Problem:    Autoconf may mess up compiler flags.
Solution:   Handle removing FORTIFY_SOURCE a bit better. (Vladimir Lomov,
            closes vim/vim#8049)
3fa5e64e0e
2021-04-02 13:44:25 -04:00
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
Thomas Vigouroux
11bea67a55
fix: allow accessing vim.treesitter.language without require 2021-04-01 16:51:36 +02: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