Commit Graph

23728 Commits

Author SHA1 Message Date
zeertzjq
23080a4d7a
fix(mouse): ensure no scrolling with "ver:0" in 'mousescroll' (#20861) 2022-10-30 07:10:39 +08:00
zeertzjq
f2d9c330fc
fix(path): don't remove trailing slash when getting absolute path (#20853)
Before Vim patch 8.2.3468 relative_directory is never used in the
resulting path name, so whether it has a trailing slash didn't matter.
Now path_full_dir_name() appends a non-existing relative directory to
the current directory name, so the trailing slash needs to be kept.
2022-10-30 07:10:04 +08:00
zeertzjq
a7d100f052
fix: avoid unsigned overflow in home_replace() (#20854) 2022-10-30 06:49:39 +08:00
dundargoc
49fbcb5b82
ci: use GHA default clang for asan, tsan jobs #20846
Default is currently clang 14. GHA images are updated at least once per year, so
we don't need to manually install a newer clang version.

Also remove step for installing clang-13 since it's not needed anymore.
2022-10-29 12:11:56 -07:00
dundargoc
1d625a3cf7
build: remove python linting #20851
This includes both the `lintpy` make target and for CI. We're actively
trying to reduce our python usage, so this only seems to give warnings
for unimportant things such as exceeding the line after deleting python
code.
2022-10-29 10:42:10 -07:00
Christian Clason
6884f017b5
vim-patch:partial:6ebe4f970b8b (#20860)
Update runtime files

6ebe4f970b

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2022-10-29 17:41:22 +02:00
Martin Kunz
356244d50b
fix(docs): nil as viable argument for goto_prev (#20852)
Added `nil` as a possible option to `vim.diagnostics.goto_prev` in the
docs
2022-10-28 17:13:27 -06:00
zeertzjq
49e32cbdf8
Merge pull request #20848 from zeertzjq/vim-8.2.1639
vim-patch:8.2.{1639,1642,1652,1663,1716}: optwin translations
2022-10-29 06:43:44 +08:00
zeertzjq
3c0ad25854 vim-patch:8.2.1716: options window has duplicate translations
Problem:    Options window has duplicate translations.
Solution:   Make one entry for "global or local to buffer".  Fix wrong text.
            (closes vim/vim#6983)

b5cfff0b34

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2022-10-28 23:26:41 +08:00
zeertzjq
fc6afdcf53 vim-patch:8.2.1663: options window entries cannot be translated
Problem:    Options window entries cannot be translated.
Solution:   Use AddOption() for all explanations. (closes vim/vim#6800)

14944c04bd

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2022-10-28 23:26:41 +08:00
zeertzjq
4dcc6409a8 vim-patch:8.2.1652: cannot translate lines in the options window
Problem:    Cannot translate lines in the options window.
Solution:   Use the AddOption() function to split descriptions where indicated
            by a line break. (issue vim/vim#6800)

a953b5cf4f

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2022-10-28 22:57:44 +08:00
zeertzjq
08b1055c09 vim-patch:8.2.1642: otions test fails
Problem:    Otions test fails.
Solution:   Correct call to OptionG().

4507f6ada5

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2022-10-28 22:48:59 +08:00
zeertzjq
a7912b190d vim-patch:8.2.1639: options window cannot be translated
Problem:    Options window cannot be translated.
Solution:   Get the translation for "local to" texts once and use them in many
            places. Fix that 'whichwrap' is not a local option. (issue vim/vim#6800)

64075b0ab1

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2022-10-28 22:48:12 +08:00
zeertzjq
d9dce2d955
build: make update-po support optwin.vim (#20840) 2022-10-28 22:35:48 +08:00
Lewis Russell
60427eb05f
fix(diff.c): regression in diffgetput (#20843) 2022-10-28 13:22:10 +01:00
zeertzjq
3de2a7f6df
Merge pull request #20842 from zeertzjq/vim-8.2.1395
vim-patch:8.2.{1395,3407}
2022-10-28 14:15:49 +08:00
zeertzjq
3afcc48a05 vim-patch:8.2.3407: using uninitialized memory with "let g:['bar'] = 2"
Problem:    Using uninitialized memory with "let g:['bar'] = 2".
Solution:   Initialize v_type of a new dict item.

3b31851356

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2022-10-28 13:28:18 +08:00
zeertzjq
bfdf10d870 vim-patch:8.2.1395: Vim9: no error if declaring a funcref with lower case letter
Problem:    Vim9: no error if declaring a funcref with a lower case letter.
Solution:   Check the name after the type is inferred. Fix confusing name.

98b4f145eb

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2022-10-28 11:44:30 +08:00
zeertzjq
685ff3ee72
Merge pull request #20832 from zeertzjq/vim-8.2.1544
vim-patch:8.2.{1544,1585}: cannot translate messages in a Vim script
2022-10-28 11:25:29 +08:00
zeertzjq
bbbcd5393d vim-patch:8.2.1585: messages in globals.h not translated
Problem:    Messages in globals.h not translated, xgettext on MS-Windows not
            fully supported.
Solution:   Add globals.h to list of input files.  Update MS-Windows makefiles
            to improve message translations. (Ken Takata, closes vim/vim#6858)

fa57335e53

Also update gettext() docs to match latest Vim.
2022-10-28 08:04:57 +08:00
zeertzjq
5568267ccb vim-patch:8.2.1544: cannot translate messages in a Vim script
Problem:    Cannot translate messages in a Vim script.
Solution:   Add gettext().  Try it out for a few messages in the options
            window.

0b39c3fd4c

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2022-10-28 08:03:31 +08:00
Christian Clason
f44ad75380
docs(api): pattern is not expanded for autocommands (#20812)
Problem: Unlike `:autocmd`, `nvim_create_autocommand()` does not expand
environment variables in the `pattern`, which is unexpected.

Solution: Add a note to the documentation explaining this and suggesting
using `expand()` explicitly.
2022-10-27 22:31:58 +02:00
dundargoc
f3268652ab
docs: .git-blame-ignore-revs (#20820) 2022-10-27 20:31:09 +02:00
Lewis Russell
d4ca5c22c9
Merge pull request #20796 from lewis6991/refactor/diff.c_memmove 2022-10-27 16:14:06 +01:00
zeertzjq
57af2d6953
build: fix plural messages missing from .po files (#20830) 2022-10-27 21:59:46 +08:00
James McCoy
5cf820f384
Merge pull request #20828 from zeertzjq/vim-patch-null
build(vim-patch.sh): handle added/removed files properly
2022-10-27 06:57:40 -04:00
Christian Clason
dab07be4d1
build(deps): bump vimdoc parser to v1.2.5 (#20829) 2022-10-27 09:16:16 +02:00
zeertzjq
9f6502535b build(vim-patch.sh): handle added/removed files properly 2022-10-27 13:59:57 +08:00
zeertzjq
c41873ab63
Merge pull request #20827 from zeertzjq/vim-8.2.4234
vim-patch:8.2.{2653,4234}
2022-10-27 13:32:47 +08:00
zeertzjq
762ca67091 vim-patch:8.2.4234: test_garbagecollect_now() does not check v:testing
Problem:    test_garbagecollect_now() does not check v:testing as documented.
Solution:   Give an error if v:testing is not set.

b3d83980d2

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2022-10-27 13:10:33 +08:00
zeertzjq
25cf4f2fc7 vim-patch:8.2.2653: build failure
Problem:    Build failure.
Solution:   Add missing changes.

3a0f092ac0

Omit E1176: only applicable to Vim9 script.

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2022-10-27 13:07:51 +08:00
zeertzjq
1fe31651bc
Merge pull request #20826 from zeertzjq/vim-8.2.4206
vim-patch:8.2.{4070,4206,4207}
2022-10-27 13:07:24 +08:00
zeertzjq
e3acf913db vim-patch:8.2.4207: recursion test fails with MSVC
Problem:    Recursion test fails with MSVC.
Solution:   Use a smaller limit for MSVC.

50e0525445

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2022-10-27 12:47:44 +08:00
zeertzjq
807c6bb909 vim-patch:8.2.4206: condition with many "(" causes a crash
Problem:    Condition with many "(" causes a crash.
Solution:   Limit recursion to 1000.

fe6fb267e6

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2022-10-27 12:47:44 +08:00
zeertzjq
b793395019 vim-patch:8.2.4070: using uninitialized memory when reading empty file
Problem:    Using uninitialized memory when reading empty file.
Solution:   Check for empty file before checking for NL. (Dominique Pellé,
            closes vim/vim#9511)

f5d639a8af

Co-authored-by: Dominique Pelle <dominique.pelle@gmail.com>
2022-10-27 12:47:44 +08:00
dundargoc
7765f2bb83
build: copy each treesitter parser library individually #20797
Copying each .so file one by one, rather than the entire parser
directory, allows newer .so files to overwrite older .so files with the
same name. This is useful when bumping a parser version and rebuilding
neovim without needing to run `make distclean` beforehand.
2022-10-26 21:46:18 -07:00
dundargoc
0117c97e62
refactor(clint): convert short to int16_t (#20815) 2022-10-27 12:28:16 +08:00
zeertzjq
72503a7a45
Merge pull request #20824 from zeertzjq/vim-8.2.3408
vim-patch:8.2.{partial:2881,3408}
2022-10-27 10:08:13 +08:00
zeertzjq
acbfbbb649 vim-patch:8.2.3408: can delete a numbered function
Problem:    Can delete a numbered function. (Naohiro Ono)
Solution:   Disallow deleting a numbered function. (closes vim/vim#8760)

ddfc05100a

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2022-10-27 09:45:56 +08:00
zeertzjq
9eaae3d56b vim-patch:partial:8.2.2881: various pieces of code not covered by tests
Problem:    Various pieces of code not covered by tests.
Solution:   Add a few more tests. (Yegappan Lakshmanan, closes vim/vim#8245)

611728f806

Only port the last two hunks of test_user_func.vim.

Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2022-10-27 09:40:45 +08:00
zeertzjq
bce6891a69
Merge pull request #20823 from zeertzjq/vim-8.2.2100
vim-patch:8.2.{2100,2726,2727}
2022-10-27 08:56:48 +08:00
zeertzjq
905bef7bd9 vim-patch:8.2.2727: function test fails
Problem:    Function test fails.
Solution:   Adjust expected error number.

e9b8b78e04

Cherry-pick colons from patch 8.2.1593.

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2022-10-27 08:36:09 +08:00
zeertzjq
1f438b2338 vim-patch:8.2.2726: confusing error message with white space before comma
Problem:    Confusing error message with white space before comma in the
            arguments of a function declaration.
Solution:   Give a specific error message. (closes vim/vim#2235)

86cdb8a4bd

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2022-10-27 08:33:55 +08:00
zeertzjq
bd122494cc vim-patch:8.2.2100: insufficient testing for function range and dict
Problem:    Insufficient testing for function range and dict.
Solution:   Add a few tests. (Dominique Pellé, closes vim/vim#7428)

67322bf74a
2022-10-27 08:30:16 +08:00
zeertzjq
245e6c5b30 test(old): test_lambda.vim garbagecollect() -> test_garbagecollect_now() 2022-10-27 08:25:28 +08:00
zeertzjq
23204c83ed
Merge pull request #20822 from zeertzjq/vim-8.2.2837
vim-patch:8.2.{2837,3839}: various tests
2022-10-27 08:23:32 +08:00
zeertzjq
c031547c8d vim-patch:8.2.3839: using \z() with \z1 not tested for syntax highlighting
Problem:    Using \z() with \z1 not tested for syntax highlighting.
Solution:   Add a test. (Dominique Pellé, closes vim/vim#9365)

354b23a9f8

Co-authored-by: Dominique Pelle <dominique.pelle@gmail.com>
2022-10-27 08:01:38 +08:00
zeertzjq
624f6a8ca0 vim-patch:8.2.2837: various code lines not covered by tests
Problem:    Various code lines not covered by tests.
Solution:   Add test cases. (Dominique Pellé, closes vim/vim#8178)

6d37e8e3ba

Co-authored-by: Dominique Pelle <dominique.pelle@gmail.com>
2022-10-27 08:01:38 +08:00
Raffaele Mancuso
c86371258c
docs(usr_05): update sentence about Nvim default behavior of Q (#20817)
While the user guide correctly describes the mapping in Vim, the default
behaviour in NeoVim seems to be the one described here.
2022-10-27 07:43:50 +08:00
zeertzjq
fef8ff9088
Merge pull request #20818 from zeertzjq/vim-8.2.0531
vim-patch:8.2.{0531,0534,0606,1113}: various tests
2022-10-27 05:57:07 +08:00