Commit Graph

23644 Commits

Author SHA1 Message Date
zeertzjq
428ab6f24e
fix(mark): do not restore view in op-pending mode (#20889) 2022-11-01 06:14:20 +08:00
bfredl
bf3cbee630
Merge pull request #20489 from jpalus/memory-alignment
memory: fix memory alignment for dynamic allocation
2022-10-31 17:10:13 +01:00
bfredl
8b7247af7d refactor(memory): simplify new alignment logic
In particular, we can assume the xmalloc-ed pointer is at least
double-aligned, otherwise nothing work work.
2022-10-31 11:12:55 +01:00
Jan Palus
0240fd6d0f fix(memory): fix memory alignment for dynamic allocation
all pointers returned by arena_alloc residing in arena block should be
properly aligned

to meet neovim's alignment requirements but keeping it simple settle on
ARENA_ALIGN = MAX(sizeof(void *), sizeof(double)).
2022-10-31 09:42:40 +01:00
Justin M. Keyes
19dab2ead2
Merge #20873 from justinmk/checkhealth 2022-10-30 11:39:38 -04:00
Justin M. Keyes
cc7c378bf3 feat(checkhealth): check runtime ($VIMRUNTIME)
Move man/health.lua into the "runtime" check.

fix #20696
2022-10-30 16:23:58 +01:00
Justin M. Keyes
3213bc36c5 refactor(checkhealth): convert "nvim" check to Lua 2022-10-30 15:50:59 +01:00
Justin M. Keyes
c7a88a470f feat(checkhealth): improve treesitter report 2022-10-30 15:50:59 +01:00
dundargoc
6e84a46abc
ci(stylua): explicitly set the version to latest (#20869)
This will silence the warning about needing to pin the version in the
Summary Page.
2022-10-30 11:08:59 +01:00
lvimuser
e0dff29adc
fix(lsp/window_showDocument): correctly handle external resources #20867
- since cmd is a list, it runs directly ('no shell') and we shouldn't
  escape.
- typo: shellerror -> shell_error
2022-10-30 02:35:22 -07:00
dundargoc
cf0f53037c
ci(windows): build dependencies with Ninja (#20800)
This will save around a minute of CI time for each run. Also clean up
build.ps1 by removing unnecessary code.
2022-10-30 10:06:13 +01:00
zeertzjq
75ec1b7208
Merge pull request #20855 from zeertzjq/vim-fb0cf2357e0c
vim-patch:9.0.{0816,0819}: CTRL-Z at end of file is always dropped
2022-10-30 08:33:29 +08:00
zeertzjq
4158ad38ec vim-patch:9.0.0819: still a build error, tests are failing
Problem:    Still a build error, tests are failing.
Solution:   Correct recent changes. Add missing init for 'eof'.

1577537f10

vim-patch:1577537f109d

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2022-10-30 08:07:56 +08:00
zeertzjq
feabc1c98c vim-patch:9.0.0816: CTRL-Z at end of file is always dropped
Problem:    CTRL-Z at end of file is always dropped.
Solution:   Add the 'endoffile' option, like the 'endofline' option.
            (closes vim/vim#11408, closes vim/vim#11397)

Cherry-pick test_fixeol.vim changes from patch 8.2.1432.
Cherry-pick 'endoffile' changes from latest Vim runtime update.

fb0cf2357e

vim-patch:f0b567e32a46

Revert unintended Makefile change

f0b567e32a

vim-patch:72c8e3c070b3

Fix wrong struct access for member.

72c8e3c070

vim-patch:3f68a4136eb9

Add missing entry for the 'endoffile' option.

3f68a4136e

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2022-10-30 08:07:50 +08:00
zeertzjq
8d38e1ad34
build(vim-patch.sh): checkout files with path for uncrustify (#20863) 2022-10-30 08:05:50 +08:00
Barrett Ruth
2817411b7d
fix(health): correct tmux rgb verification (#20868)
Current RGB verification parses `tmux server-info`. Despite it being a tmux default alias to `tmux show-messages -JT`, it may be unavailable. Use `tmux show-messages -JT` directly instead.
2022-10-30 07:37:47 +08:00
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