Commit Graph

16333 Commits

Author SHA1 Message Date
James McCoy
2516386c6b
travis: Install clang-11 for ASAN/UBSAN job
[skip appveyor]
2020-09-04 10:59:16 -04:00
James McCoy
16e69eae70
travis: Relax pyenv versions to 2.7:3.8
We don't care about the specifics of the patch version, so just set the
major:minor.

[skip appveyor]
2020-09-04 10:59:15 -04:00
James McCoy
f7434bab73
travis: Install powershell via "snaps" addon
[skip appveyor]
2020-09-04 10:59:15 -04:00
James McCoy
89ed96fab9
travis: Bump Linux dist to bionic
[skip appveyor]
2020-09-04 10:59:08 -04:00
Björn Linse
ef5a09d4fc
Merge pull request #12816 from vigoux/decorations
New Decorations API (not finalized, but we gonna build on this)
2020-09-04 16:39:48 +02:00
James McCoy
dd465bbccc
Merge pull request #12848 from jamessan/vim-8.2.1552 2020-09-04 10:16:57 -04:00
Thomas Vigouroux
3fd6e3b923 treesitter: allow to list supported predicates 2020-09-04 15:24:23 +02:00
James McCoy
b163a89925
vim-patch.sh: Fix PR subject with multiple patches 2020-09-04 08:46:46 -04:00
James McCoy
5707982bd3
lint 2020-09-04 08:27:33 -04:00
James McCoy
1190192216
vim-patch:8.2.1560: using NULL pointers in some code
Problem:    Using NULL pointers in some code. (James McCoy)
Solution:   Avoid adding to a NULL pointer.  Use byte as unsigned.
9c2b06637b

The changes to eval.c (skip_expr_concatenate) and vim9compile.c aren't
included since they're specific to vim9script support.
2020-09-04 08:25:33 -04:00
James McCoy
ae8f108732
vim-patch:8.2.1553: crash in edit test
Problem:    Crash in edit test.
Solution:   Avoid using invalid pointer.
2c93c685e3
2020-09-04 08:25:25 -04:00
James McCoy
0c851e5226
vim-patch:8.2.1552: warnings from asan with clang-11
Problem:    Warnings from asan with clang-11. (James McCoy)
Solution:   Avoid using a NULL pointer. (issue vim/vim#6811)
64f37d3090
2020-09-03 23:00:24 -04:00
Thomas Vigouroux
1832d18083 treesitter: update to use buf_set_extmark 2020-09-03 15:40:31 +02:00
Björn Linse
49f5b57587 decor: sketch new decorations API
return decorations back

lol no nvim_buf_get_virtual_text

share decorations that are hl only to avoid alloc avalanche
2020-09-03 15:40:24 +02:00
Jacques Germishuys
98dea93ba0 only perl 5.22+ is supported 2020-09-03 09:57:59 +01:00
Jacques Germishuys
d802658ebb import legacy perl interface tests 2020-09-03 09:57:59 +01:00
Jacques Germishuys
7725fd9880 added perleval() documentation 2020-09-03 09:57:59 +01:00
Jacques Germishuys
8c6e96bb50 document that the perl legacy interface is now also supported 2020-09-03 09:57:59 +01:00
Björn Linse
d3302573ba extmark: move id to dict in nvim_buf_set_extmark 2020-09-03 10:23:52 +02:00
Björn Linse
54ce1010e8 extmark: refiy "Decoration" abstraction
one very important thought
2020-09-03 10:23:52 +02:00
Justin M. Keyes
3acfefb63e
Merge #12827 'vim-patch:8.2.{1554,1561,1564,1565,1566}' 2020-09-02 22:31:31 -07:00
Jan Edmund Lazo
5fcdb63025
vim-patch:8.2.1564: a few remaining errors from ubsan
Problem:    A few remaining errors from ubsan.
Solution:   Avoid the warnings. (Dominique Pellé, closes vim/vim#6837)
4ad739fc05
2020-09-02 22:44:21 -04:00
Jan Edmund Lazo
b9430fe28e
vim-patch:8.2.1566: not all Bazel files are recognized
Problem:    Not all Bazel files are recognized.
Solution:   Add *.bazel and *.BUILD. (closes vim/vim#6836)
4488f5a545
2020-09-02 21:59:36 -04:00
Jan Edmund Lazo
4bcca0baa9
vim-patch:8.2.1565: spellfile test sometimes fails
Problem:    Spellfile test sometimes fails.
Solution:   Check running into the end of the file.
e90d63ea90
2020-09-02 09:10:50 -04:00
Jan Edmund Lazo
cc64f2cc1d
vim-patch:8.2.1561: using NULL pointers in fold code
Problem:    Using NULL pointers in fold code.
Solution:   Avoid using a NULL pointer. (Dominique Pellé, closes vim/vim#6831,
            closes vim/vim#6831)
81fcb67fb3
2020-09-02 09:10:50 -04:00
Jan Edmund Lazo
22e9aadc88
vim-patch:8.2.1554: crash in normal test
Problem:    Crash in normal test.
Solution:   Skip adjusting marks if there are no folds.
07e87e9eb5
2020-09-02 08:57:43 -04:00
Justin M. Keyes
948e625e1e
Merge #12468 'lsp: logging' 2020-09-01 20:50:08 -07:00
Gıyaseddin Tanrıkulu
e86b15b25c
lsp/make_position_param(): handle empty buffer #12825
Fix  #12623

problem: nvim_buf_get_lines(0) returns empty during startup, where no buffers are loaded yet.
solution: return empty object

Happens during startup, where buffer may not be loaded yet, because...
`source_startup_scripts()` is done before `edit_buffers()`:
9bb552875d/src/nvim/main.c (L362)
9bb552875d/src/nvim/main.c (L480)
2020-09-01 20:45:47 -07:00
Jacques Germishuys
a166c2aadb
eval_call_provider(): free unused return value #12819
Caller can pass discard=true to free the unwanted return value.
2020-09-01 20:22:42 -07:00
Thomas Vigouroux
4bcf54478a
Merge pull request #12814 from theHamsta/escape-queries
treesitter: avoid escaping complete query strings
2020-09-01 12:50:21 +02:00
Björn Linse
04ab26b885
Merge pull request #12736 from vigoux/ts-iter-children
treesitter: allow to iterate over node children
2020-09-01 10:52:55 +02:00
DDoSolitary
c14a9f6fcc
g📋 allow command given as a list #12775
fixes #12768
2020-09-01 00:27:38 -07:00
Thomas Vigouroux
18217b987f treesitter: add node:field() to get field children 2020-09-01 08:57:55 +02:00
Michel Alexandre Salim
a50cf35bda
build/FindLua.cmake: allow Lua 5.4 #12820
Lua 5.4 is out, and will be shipped with Fedora 33.
2020-08-31 22:06:59 -07:00
Stephan Seitz
b058c671d2 treesitter: avoid escaping complete query strings
Escape "\\" only for `vim-match?` not for `match?`
Fixes #12595
2020-08-31 17:24:38 +02:00
Jan Edmund Lazo
2bbbb34ce7
Merge pull request #12804 from janlazo/vim-8.1.1725
[RDY]vim-patch:8.1.{1694,1725,1776,1804,1806,1831,2041,2198,2206},8.2.{1033,1315,1548}
2020-08-31 08:25:16 -04:00
Thomas Vigouroux
e123fd0a5d treesitter: allow to iterate over node children 2020-08-31 13:42:30 +02:00
Thomas Vigouroux
24b5f69a49
fix(win): ignore closing wins in win_findbuf #12798
This caused segfaults when calling win_findbuf in an `on_detach`
callback, when the callback was triggered when closing the last window
containing the buffer.
2020-08-31 00:53:10 -07:00
Justin M. Keyes
c2662210b5
docs, remove 'guifontset' #11708
- remove redundant autocmd list
  This "grouped" list is useless, it only gets in the way when searching
  for event names.
- intro.txt: cleanup
- starting.txt: update, revisit
- doc: `:help bisect`
- mbyte.txt: update aliases 1656367b90. closes #11960
- options: remove 'guifontset'. Why:
  - It is complicated and is used by almost no one.
  - It is unlikely to be implemented by Nvim GUIs (complicated to parse,
    specific to Xorg...).
2020-08-31 00:51:35 -07:00
Anmol Sethi
3229ba0cde
lsp: Fix bad sortText comparison (#12485)
The spec indicates we have to fallback to comparing by label
if sortText is falsy.

Closes #12431
2020-08-30 22:29:47 -07:00
Jan Edmund Lazo
62ba227155
vim-patch:8.2.1548: cannot move position of "%%" in message translations
Problem:    Cannot move position of "%%" in message translations. (Emir Sarı)
Solution:   Improve the check script.
0b8cf278ec
2020-08-30 21:19:23 -04:00
Jan Edmund Lazo
52a2a1b3d2
vim-patch:8.1.1694: the RUN_VIM variable is longer than needed
Problem:    The RUN_VIM variable is longer than needed.
Solution:   Shorten RUN_VIM. (Daniel Hahler, closes vim/vim#4643)
41a8260445
2020-08-30 21:12:26 -04:00
Jan Edmund Lazo
697a6ca2e4
vim-patch:8.1.2041: no test for diff mode with syntax highlighting
Problem:    No test for diff mode with syntax highlighting.
Solution:   Add a test case.
248fdb3332
2020-08-30 21:12:26 -04:00
Jan Edmund Lazo
aa60cb1083
vim-patch:8.1.1831: confusing skipped message
Problem:    Confusing skipped message.
Solution:   Drop "run" from "run start the GUI".
2514315fc2

Cherry-pick 'CheckCanRunGui' user command from patch 8.1.1826.
2020-08-30 21:12:26 -04:00
Jan Edmund Lazo
2bae98a5ea
vim-patch:8.1.2206: no test for fixed issue vim/vim#3893
Problem:    No test for fixed issue vim/vim#3893.
Solution:   Add a test. (Christian Brabandt, vim/vim#3893)
28686682e7
2020-08-30 21:12:26 -04:00
Jan Edmund Lazo
d4df5fc90e
vim-patch:8.1.1806: test for display updating doesn't check without statusline
Problem:    Test for display updating doesn't check without statusline.
Solution:   Add screenshots without a status line.
7cc535175a
2020-08-30 21:12:26 -04:00
Jan Edmund Lazo
f48847c578
vim-patch:8.1.1804: no test for display updating without a scroll region
Problem:    No test for display updating without a scroll region.
Solution:   Add a test.
3c8ee62974
2020-08-30 21:12:26 -04:00
Jan Edmund Lazo
1fbfd6ba09
vim-patch:8.1.1776: text added with a job isn't displayed
Problem:    Text added with a job to another buffer isn't displayed.
Solution:   Update topline after adding a line. (closes vim/vim#4745)
4641a122f2
2020-08-30 21:12:26 -04:00
Jan Edmund Lazo
a45dc02a14
vim-patch:8.1.2198: crash when using :center in autocommand
Problem:    Crash when using :center in autocommand.
Solution:   Bail out early for an empty line. (Dominique pelle, closes vim/vim#5095)
396b7c78c0

Cherry-pick 'src/testdir/check.vim' changes from patch 8.1.1544.
2020-08-30 21:12:25 -04:00
Jan Edmund Lazo
40fca0cea8
vim-patch:8.2.1315: MS-Windows: test log contains escape sequences
Problem:    MS-Windows: test log contains escape sequences.
Solution:   Do not use t_md and t_me but ANSI escape sequences. (Ken Takata,
            closes vim/vim#6559)
45df2a01a7
2020-08-30 21:12:25 -04:00