Commit Graph

18258 Commits

Author SHA1 Message Date
Jan Edmund Lazo
3d120b1c18
screen: pvs/v614
win_col_offset must be 0 to be no-opt
when passed to col_off param of draw_virt_text().
2021-06-05 12:49:27 -04:00
Jan Edmund Lazo
607d1cc80d
fixup! vim-patch:8.2.2136: Vim9: Using uninitialized variable
Resolve pvs/v560 error.
mods is nonnull in the modified inner if-condition.
because it is checked for NULL in the outer if-condition.
2021-06-05 12:49:27 -04:00
Jan Edmund Lazo
44b6a7b5bf
undo: pvs/v547
buf is nonnull when xfree(buf) is executed.

free(NULL) is safe (for target compilers) so xfree(NULL) is also safe.
2021-06-05 12:49:27 -04:00
Jan Edmund Lazo
5115bc3f4f
sign: pvs/v547
vim_strsave() returns nonnull.
2021-06-05 12:49:27 -04:00
Jan Edmund Lazo
729f270266
userfunc: pvs/v547
vim_strsave() returns nonnull.
2021-06-05 12:49:26 -04:00
Jan Edmund Lazo
5571004b69
fixup! tests: fix system_spec when run with clipboard manager (#10956)
uv_process_options_t "args" member was set to a local array from stack.
when uv_process_options_t variable is outside the function.
https://pvs-studio.com/en/docs/warnings/v507/
2021-06-05 12:49:26 -04:00
Jan Edmund Lazo
304c6ce934
fixup! fixup! vim-patch:8.2.2776: :mksession uses current value of 'splitbelow' and 'splitright' (#14398) 2021-06-05 12:49:26 -04:00
Jan Edmund Lazo
b959de3a5f
vim-patch:8.0.1578: no test for :popup in terminal
Problem:    No test for :popup in terminal.
Solution:   Add a screen dump test.
69f5a3011d
2021-06-05 12:49:26 -04:00
Jan Edmund Lazo
60bf49ab1c
vim-patch:8.2.2937: popup test fails if rightleft feature not enabled
Problem:    Popup test fails if rightleft feature not enabled.
Solution:   Check that the rightleft feature is available. (Dominique Pellé,
            closes vim/vim#8321)
56cddb3879
2021-06-05 12:49:26 -04:00
Jan Edmund Lazo
1b13c744ea
vim-patch:8.2.2877: insufficient tests for popup menu rightleft
Problem:    Insufficient tests for popup menu rightleft.
Solution:   Add tests. (Yegappan Lakshmanan, closes vim/vim#8235)
1e615669c0
2021-06-05 12:49:26 -04:00
Folke Lemaitre
149efa9b2b
fix(lsp): max 1 floating preview per buffer. Fixes #11508 2021-06-05 10:13:01 +02:00
James McCoy
ca802046bf
Merge pull request #14721 from jamessan/mac-ci
fix(ci): Remove gcc@8/gcc@9 homebrew workaround
2021-06-04 12:28:37 -04:00
James McCoy
04985f69eb
fix(ci): Remove gcc@8/gcc@9 homebrew workaround 2021-06-04 11:21:45 -04:00
Jan Edmund Lazo
7d4f890aa9
Merge pull request #14710 from janlazo/clang-warnings
Reduce clang warnings
2021-06-02 22:40:09 -04:00
Jan Edmund Lazo
6a2f1b1740
clang/'Logic error': assert get_decor_provider(id, true) returns nonnull
nvim_set_decoration_provider() has undefined behavior (if not crash)
if get_decor_provider() returns NULL.
2021-06-02 21:49:38 -04:00
Jan Edmund Lazo
68cb51ab0a
fixup! vim-patch:8.2.2776: :mksession uses current value of 'splitbelow' and 'splitright' (#14398)
tab_firstwin can be NULL.
2021-06-02 21:45:44 -04:00
Jan Edmund Lazo
d1238856a8
clang/'Logic error': has_profiling() may not set forceit 2021-06-02 21:24:01 -04:00
Jan Edmund Lazo
626c631e89
clang/'Logic error': zero-init oldbase array
unrelative() must not have garbage structs.
2021-06-02 21:19:19 -04:00
Jan Edmund Lazo
59db83bc59
clang/API: reject null string in timer_start() 2021-06-02 21:05:13 -04:00
ray-x
351050a10f fix(lsp): floating window border size for string type 'none' and 'shadow' 2021-06-02 20:44:13 +10:00
Thomas Vigouroux
68d40388f3
Merge pull request #14701 from neovim/marvim/api-doc-update/master
docs: regenerate
2021-06-02 08:16:39 +02:00
marvim
2ebc28018e docs: regenerate 2021-06-02 00:43:13 +00:00
James McCoy
056c464e8a
Merge pull request #14692 from jamessan/api-doc-workflow
ci(gha): New workflow to regen API docs on pushes to release branches
2021-06-01 20:40:16 -04:00
Michael Lingelbach
3fe7a04704
Merge pull request #14698 from jose-elias-alvarez/omnifunc-insert-check
fix(lsp): check mode in omnifunc callback
2021-06-01 10:13:17 -07:00
Jose Alvarez
d4caafacc1 fix(lsp): check mode in omnifunc callback 2021-06-01 22:13:21 +09:00
Michael Lingelbach
b10cda83fa
Merge pull request #14693 from shadmansaleh/enhance/lsp/make_focusable_parameter_configurable
feat(lsp): Make focusability of lsp float configurable
2021-06-01 04:32:59 -07:00
shadmansaleh
68d48e25b6 docs(lsp): Fix opts param not captured by docgen
In the documentation for `vim.lsp.util.open_floating_preview`
the opts table keys were prefixed with `--` instead of `---`,
preventing capture by docgen.
2021-06-01 17:29:06 +06:00
shadmansaleh
0bd34cb4ec feat(lsp): Make focusability of lsp float configurable
This pr allows the user to specify whether `lsp.utils.open_floating_preview`
is focusable via the `opts` parameter. Defaults to true.

It can be configured by setting the focusable key inside opts parameter:

```lua
vim.lsp.util.open_floating_preview(contents, syntax, {focusable = false})
```
2021-06-01 17:23:35 +06:00
Michael Lingelbach
64bdaef327
Merge pull request #14694 from folke/lsp_popup_border 2021-06-01 01:52:38 -07:00
Björn Linse
2faa1c361b
Merge pull request #14659 from seandewar/api-win-buf-noautocmd
api(nvim_open_win): Enable BufEnter autocmds by default like ordinary window; add "noautocmd" option to block BufEnter.
2021-06-01 10:05:58 +02:00
Folke Lemaitre
0ece34cbb8
fix(lsp): properly handle border character list without highlight groups. Fixes #14691 2021-06-01 09:36:29 +02:00
James McCoy
efef508ec6
ci(gha): New workflow to regen API docs on pushes to release branches
Upon pushing updates to files which may contain API documentation, the
workflow will regenerate the docs and, if there are relevant changes,
create a PR targeting the source branch.

[skip ci]
2021-05-31 22:52:44 -04:00
Sean Dewar
db6523cd13
api(parse_float_config): use api_object_to_bool() 2021-06-01 03:05:04 +01:00
Sean Dewar
802f8429d5
api(nvim_open_win): add "noautocmd" option
This option, when set, stops nvim_open_win() from potentially firing
buffer-related autocmd events
(BufEnter, BufLeave and BufWinEnter in the case of nvim_open_win()).
2021-06-01 03:05:04 +01:00
Jan Edmund Lazo
27c616d688
Merge pull request #14685 from janlazo/vim-8.2.2911
vim-patch:8.1.2400,8.2.{2911,2914.2916}
2021-05-31 22:01:09 -04:00
Jan Edmund Lazo
e8f0ff1d48
Merge pull request #14531 from janlazo/revert-noblock
Revert "api/window: use the "noblock" variants in nvim_win_set_buf"
2021-05-31 21:57:44 -04:00
Jan Edmund Lazo
c3ac9c13df
vim-patch:8.2.2916: operators are not fully tested
Problem:    Operators are not fully tested.
Solution:   Add a few more tests. (Yegappan Lakshmanan, closes vim/vim#8290)
2ac7184d34
2021-05-31 21:37:46 -04:00
Jan Edmund Lazo
2f79caa02d
vim-patch:8.1.2400: test39 is old style
Problem:    Test39 is old style.
Solution:   Convert the test cases into new style. (Yegappan Lakshmanan,
            closes vim/vim#5324)
1f3e7d3bf0
2021-05-31 21:24:31 -04:00
Jan Edmund Lazo
e399731561
vim-patch:8.2.2914: cannot paste a block without adding padding
Problem:    Cannot paste a block without adding padding.
Solution:   Add "zp" and "zP" which paste without adding padding. (Christian
            Brabandt, closes vim/vim#8289)
2fa9384ca1

Cherry-pick Test_normal_z_error() from patch v8.2.0369.
2021-05-31 21:06:11 -04:00
Jan Edmund Lazo
73e3669c7a
vim-patch:8.2.2911: pattern "\%V" does not match all of block selection
Problem:    Pattern "\%V" does not match all of block selection. (Rick Howe)
Solution:   Use the value of vi_curswant. (closes vim/vim#8285)
e71c0ebe2c
2021-05-31 21:06:10 -04:00
Michael Lingelbach
2a1bc8657a
Merge pull request #14690 from mjlbach/fix_docs
fix(docs): delete duplicate tags
2021-05-31 12:01:22 -07:00
Michael Lingelbach
638c29b7c9 fix(docs): delete duplicate tags 2021-05-31 11:51:02 -07:00
Michael Lingelbach
0866df4d6a
Merge pull request #14687 from kabouzeid/vim-docs
Updated vim docs
2021-05-31 11:27:58 -07:00
Michael Lingelbach
96dfa07642
Merge pull request #14635 from folke/lsp_get_lines
perf(lsp): get all lines from a file in one go (`locations_to_items`)
2021-05-31 11:12:23 -07:00
Karim Abou Zeid
07f81b3b05 docs: regenerate 2021-05-31 19:47:51 +02:00
Amirreza Askarpour
3cd688ff77
fix vim.opt:remove doc (#14664) 2021-05-30 00:09:30 -04:00
Michael Lingelbach
cabf8ab26b
Merge pull request #14649 from folke/lsp_float_refactor
refactor(lsp): consolidate the different floating window methods into `open_floating_preview`
2021-05-29 12:06:58 -07:00
Jan Edmund Lazo
a7205e2b70
Merge pull request #14673 from janlazo/vim-8.2.2898
vim-patch:8.2.{2898,2900}
2021-05-29 14:08:27 -04:00
Jan Edmund Lazo
ca6a8ac93c
vim-patch:8.2.2900: QuitPre is triggered before :wq writes the file
Problem:    QuitPre is triggered before :wq writes the file, which is
            different from other commands.
Solution:   Trigger QuitPre after writing the file. (closes vim/vim#8279)
1174b018a6
2021-05-29 13:19:22 -04:00
Jan Edmund Lazo
30a34136b6
vim-patch:8.2.2898: QuitPre and ExitPre not triggered when GUI window is closed
Problem:    QuitPre and ExitPre not triggered when GUI window is closed.
Solution:   Call before_quit_autocmds(). (closes vim/vim#8242)
3552e74289
2021-05-29 09:59:20 -04:00