]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
23 months agoAdd commentstring for nix file format (#12696)
Keith Smiley [Fri, 11 Aug 2023 21:07:50 +0000 (14:07 -0700)] 
Add commentstring for nix file format (#12696)

23 months agopatch 9.0.1686: undotree() only works for the current buffer v9.0.1686
Devin J. Pohly [Mon, 24 Apr 2023 01:26:59 +0000 (20:26 -0500)] 
patch 9.0.1686: undotree() only works for the current buffer

Problem:    undotree() only works for the current buffer
Solution:   Add an optional "buffer number" parameter to undotree().  If
            omitted, use the current buffer for backwards compatibility.

closes: #4001
closes: #12292

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Co-authored-by: Devin J. Pohly <djpohly@gmail.com>
23 months agopatch 9.0.1685: silence Python 3.11 depreciations for gcc v9.0.1685
Philip H [Fri, 11 Aug 2023 20:38:48 +0000 (22:38 +0200)] 
patch 9.0.1685: silence Python 3.11 depreciations for gcc

Problem: Python 3.11 interface throws deprecation warnings
Solution: ignore those warnings for gcc and clang

Python 3.11 deprecation warnings are already silenced for clang using
the pragma
```
 # pragma clang diagnostic ignored "-Wdeprecated-declarations"
```

However those warnings are also emitted when using gcc. To avoid them
for both compilers, change use the __GNUC__ ifdef, which is defined for
gcc as well as clang.

Additionally, instead of using the "clang diagnostic ignored" pragma,
let's make use of 'GCC diagnostic ignored' which is again supported by
clang and GCC

closes: #12610

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Philip H <47042125+pheiduck@users.noreply.github.com>
23 months agopatch 9.0.1684: Update libvterm to rev 839 v9.0.1684
zeertzjq [Tue, 8 Aug 2023 03:03:00 +0000 (11:03 +0800)] 
patch 9.0.1684: Update libvterm to rev 839

Problem: libvterm slightly outdated
Solution: Update libvterm from rev 818 to rev 839

Notable fix: libvterm now handles DECSM/DECRM with multiple arguents,
so several ncurses programs (e.g. nnn) can enable mouse properly when
run in Vim's terminal in XTerm.

closes: #12746

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
23 months agoUpdate CODEOWNERS (#12760)
dkearns [Fri, 11 Aug 2023 17:30:55 +0000 (03:30 +1000)] 
Update CODEOWNERS (#12760)

23 months agoUpdate my name and email in runtime files (#12763)
Lily Ballard [Fri, 11 Aug 2023 17:30:27 +0000 (10:30 -0700)] 
Update my name and email in runtime files (#12763)

23 months agoUpdate syntax/dosini.vim to the latest version (#12764)
Hong Xu [Fri, 11 Aug 2023 17:29:20 +0000 (10:29 -0700)] 
Update syntax/dosini.vim to the latest version (#12764)

The latest version is in https://github.com/xuhdev/syntax-dosini.vim/blob/master/syntax/dosini.vim. I've sent the file to Bram at the end of June, unfortunately it wasn't able to make into the Vim repository. RIP!

23 months agoUpdate the vimscript code for restoring cursor position
Dragan Simic' via vim_dev [Wed, 9 Aug 2023 15:23:58 +0000 (17:23 +0200)] 
Update the vimscript code for restoring cursor position

Using xxd(1) to filter and edit binary files causes the input files
to have dual nature, so to speak, which effectively makes restoring
the cursor position broken.  Fix that by ignoring the "xxd" file type
in the code that restores the cursor position.

Interactive rebasing in git causes files to be edited in vim, which,
similarly to commit messages, are rarely the same as the last one
edited.  Thus, also add "gitrebase" to the list of file types for
which the cursor position isn't restored.

While there, refactor the code a bit to possibly save a few CPU cycles
and to keep the line lengths in check, and use the long form of the
commands and variables, to make the code slightly more consistent and
more understandable to newcomers.

Update the relevant comments in the code and the associated parts of
the documentation, to keep them in sync with the updated code.

Remove some redundant trailing whitespace as well, as spotted.

23 months agoImprove the vimscript code in ":h hex-editing"
Dragan Simic' via vim_dev [Wed, 9 Aug 2023 15:23:57 +0000 (17:23 +0200)] 
Improve the vimscript code in ":h hex-editing"

Save and restore the view position before and after saving the buffer,
respectively, to keep the current view of the xxd(1)'s hex dump
unchanged after doing ":w", which previously caused the window to
scroll back to the very beginning of the buffer.  I believe it's
needless to say how annoying and counterproductive that was.

Get rid of the "Press ENTER or type command to continue" message, which
was previously displayed after opening larger binary files.  The use
of "silent" and "redraw" commands is tailored specifically to avoid
screen flickering, e.g. when doing ":w", which is caused by the buffer
being filtered by an external command.

Increase the number of octets per line, produced by xxd(1), from the
default value of 16 to 32.  This puts bigger chunks of the hex dump
on the screen and makes the whole thing much more usable.

While there, reformat the code to make it more readable, and use the
long form of the commands and variables to make the code slightly more
consistent and more understandable to newcomers.

23 months agoUpdated runtime files v9.0.1683
Christian Brabandt [Thu, 10 Aug 2023 03:44:25 +0000 (05:44 +0200)] 
Updated runtime files

This is a collection of various PRs from github that all require a minor
patch number:

1) https://github.com/vim/vim/pull/12612

    Do not conflate dictionary key with end of block

2) https://github.com/vim/vim/pull/12729:

    When saving and restoring 'undolevels', the constructs `&undolevels` and
    `:set undolevels` are problematic.

    The construct `&undolevels` reads an unpredictable value; it will be the
    local option value (if one has been set), or the global option value
    (otherwise), making it unsuitable for saving a value for later
    restoration.

    Similarly, if a local option value has been set for 'undolevels',
    temporarily modifying the option via `:set undolevels` changes the local
    value as well as the global value, requiring extra work to restore both
    values.

    Saving and restoring the option value in one step via the construct
    `:let &undolevels = &undolevels` appears to make no changes to the
    'undolevels' option, but if a local option has been set to a different
    value than the global option, it has the unintended effect of changing
    the global 'undolevels' value to the local value.

    Update the documentation to explain these issues and recommend explicit
    use of global and local option values when saving and restoring.  Update
    some unit tests to use `g:undolevels`.

3) https://github.com/vim/vim/pull/12702:

    Problem:    Pip requirements files are not recognized.
    Solution:   Add a pattern to match pip requirements files.

4) https://github.com/vim/vim/pull/12688:

    Add indent file and tests for ABB Rapid

5) https://github.com/vim/vim/pull/12668:

    Use Lua 5.1 numeric escapes in tests and add to CI

    Only Lua 5.2+ and LuaJIT understand hexadecimal escapes in strings.  Lua
    5.1 only supports decimal escapes:

    > A character in a string can also be specified by its numerical value
    > using the escape sequence \ddd, where ddd is a sequence of up to three
    > decimal digits. (Note that if a numerical escape is to be followed by a
    > digit, it must be expressed using exactly three digits.) Strings in Lua
    > can contain any 8-bit value, including embedded zeros, which can be
    > specified as '\0'.

    To make sure this works with Lua 5.4 and Lua 5.1 change the Vim CI to
    run with Lua 5.1 as well as Lua 5.4

6) https://github.com/vim/vim/pull/12631:

    Add hurl filetype detection

7) https://github.com/vim/vim/pull/12573:

    Problem:   Files for haskell persistent library are not recognized
    Solution:  Add pattern persistentmodels for haskell persistent library

closes: #12612
closes: #12729
closes: #12702
closes: #12688
closes: #12668
closes: #12631
closes: #12573

Co-authored-by: lacygoill <lacygoill@lacygoill.me>
Co-authored-by: Michael Henry <drmikehenry@drmikehenry.com>
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
Co-authored-by: KnoP-01 <knosowski@graeffrobotics.de>
Co-authored-by: James McCoy <jamessan@jamessan.com>
Co-authored-by: Jacob Pfeifer <jacob@pfeifer.dev>
Co-authored-by: Borys Lykah <lykahb@fastmail.com>
23 months agopatch 9.0.1682: sodium encryption is not portable v9.0.1682
Christian Brabandt [Tue, 11 Jul 2023 20:38:29 +0000 (22:38 +0200)] 
patch 9.0.1682: sodium encryption is not portable

Problem: crypt: sodium encryption is not portable
Solution: use little-endian byte order for sodium encrypted files

As mentioned in #12586, sodium encryption only works on little ending
architectures, because reading and writing the sodium encryption
parameters are stored in the encrypted files in an arch-dependent way.

This of course fails for big-endian architectures like s390.

So make sure to use little-endian byte order when reading and writing
sodium encrypted files.

fixes: #12586
closes: 12655

23 months agoUpdate krl and add rapid syntax files (#12750)
Patrick Meiser-Knosowski [Wed, 9 Aug 2023 18:35:35 +0000 (20:35 +0200)] 
Update krl and add rapid syntax files (#12750)

23 months agoAdd security policy (#12687)
Santos Gallegos [Wed, 9 Aug 2023 18:11:37 +0000 (13:11 -0500)] 
Add security policy (#12687)

* Add security policy

Currently is hard to find where to report security issues,
the only mention of it is in the issue template.

https://github.com/vim/vim/blob/4c0089d696b8d1d5dc40568f25ea5738fa5bbffb/.github/ISSUE_TEMPLATE/bug_report.yml?plain=1#L12-L15

Adding a SECURITY.md file will make it easier to find,
it will be displayed in https://github.com/vim/vim/security.

* Mention that reports are private

23 months agodefaults.vim: Update comment to simplify reverting augroup
Balki [Fri, 14 Jul 2023 16:59:40 +0000 (16:59 +0000)] 
defaults.vim: Update comment to simplify reverting augroup

closes: #12673

23 months agopatch 9.0.1681: Build Failure with Perl 5.38 v9.0.1681
Philip H [Thu, 22 Jun 2023 06:55:47 +0000 (08:55 +0200)] 
patch 9.0.1681: Build Failure with Perl 5.38

Problem: Build Failure with Perl 5.38
Solution: Fix Build Failure

closes: #12543, closes: #12575

23 months agopatch 9.0.1680: sodium test fails in Github CI v9.0.1680
Christian Brabandt [Wed, 9 Aug 2023 14:32:28 +0000 (16:32 +0200)] 
patch 9.0.1680: sodium test fails in Github CI

Problem:    sodium test fails in Github CI
Solution:   Catch sodium_mlock() errors and do not error out

sodium_mlock() seems to fail consistently on the Github CI. Perhaps
[sodium_mlock()](https://libsodium.gitbook.io/doc/memory_management#text-locking-memory)
is called too often or with too much memory by the runners so
that this starts failing.

Let's just try to catch this and skip the test, when this starts
happening.

closes: #12751

23 months agoChange "the" to "then" under ':help bufload()' (#12662)
Daniel Steinberg [Wed, 9 Aug 2023 16:10:59 +0000 (12:10 -0400)] 
Change "the" to "then" under ':help bufload()' (#12662)

23 months agoManpager: apply g flag conditionally to s command (#12679)
Filip Gospodinov [Wed, 9 Aug 2023 16:00:36 +0000 (18:00 +0200)] 
Manpager: apply g flag conditionally to s command (#12679)

Problem: The `s` command with `g` flag only substitutes
         one occurrence when `gdefault` is set.
Solution: Use `g` flag conditionally.

23 months agoupdate matchit (#12611)
Christian Brabandt [Wed, 9 Aug 2023 15:39:53 +0000 (17:39 +0200)] 
update matchit (#12611)

23 months agoFix alignment in filetype.txt (#12618)
zeertzjq [Wed, 9 Aug 2023 15:39:05 +0000 (23:39 +0800)] 
Fix alignment in filetype.txt (#12618)

There are three spaces because the "<" is concealed.

23 months agofeat: recognize geojson extension as json filetype (#12636)
Dominique Pellé [Wed, 9 Aug 2023 15:36:40 +0000 (17:36 +0200)] 
feat: recognize geojson extension as json filetype (#12636)

23 months agoAdd filetype detection for eyaml files (#12659)
Max Gautier [Wed, 9 Aug 2023 15:18:36 +0000 (17:18 +0200)] 
Add filetype detection for eyaml files (#12659)

https://github.com/voxpupuli/hiera-eyaml/ uses and produces the eyaml
format, which is simply yaml with some encrypted values.

It's convenient to edit the file without decrypting when not touching
encrypted values (or when you don't have access to the decryption key),
which is why vim should treat those files as yaml files.

23 months agoHighlight editorconfig properties with dashes (#12691)
ObserverOfTime [Wed, 9 Aug 2023 15:05:39 +0000 (18:05 +0300)] 
Highlight editorconfig properties with dashes (#12691)

Problem: editorconfig properties with dashes are not highlighted
Solution: update the property pattern to include dashes

23 months agodetect filetype for `*.vsh` and `*.vv` files (#12692)
Turiiya [Wed, 9 Aug 2023 15:04:59 +0000 (17:04 +0200)] 
detect filetype for `*.vsh` and `*.vv` files (#12692)

Co-authored-by: Turiiya <34311583+tobealive@users.noreply.github.com>
23 months agoPyPA manifest files are not recognized (#12707)
ObserverOfTime [Wed, 9 Aug 2023 14:52:33 +0000 (17:52 +0300)] 
PyPA manifest files are not recognized (#12707)

Problem:    PyPA manifest files are not recognized.
Solution:   Add a pattern to match PyPA manifest files.

23 months agoUnison support (#12715)
Anton Parkhomenko [Wed, 9 Aug 2023 14:50:52 +0000 (21:50 +0700)] 
Unison support (#12715)

23 months agofeat(heex): borrow matchit support from html (#12717)
Chris Vincent [Wed, 9 Aug 2023 14:49:44 +0000 (09:49 -0500)] 
feat(heex): borrow matchit support from html (#12717)

* feat(heex): borrow matchit support from html

Makes % support behave the same in heex as in html. For example, quickly moving the cursor between opening and closing tags.

* Remove unnecessary line; define b:undo_ftplugin first

* Remove b:html_set_match_words

23 months agoAdd WebGPU Shading Language (WGSL) filetype (#12723)
Gergő Sályi [Wed, 9 Aug 2023 14:49:01 +0000 (16:49 +0200)] 
Add WebGPU Shading Language (WGSL) filetype (#12723)

The current W3C Working Draft for the WebGPU Shading Language (WGSL) specifies
'text/wgsl' media type for WGSL modules with the '.wgsl' file extension:
https://www.w3.org/TR/WGSL/#text-wgsl-media-type

It has also been registered at the Internet Assigned Numbers Authority (IANA):
https://www.iana.org/assignments/media-types/text/wgsl

Neovim's nvim-lspconfig already associates wgsl language servers
with 'filetype wgsl':
https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#wgsl_analyzer

However currenly setting 'filetype wgsl' for *.wgsl files by defalut in Neovim
is blocked by adding this filetype to the vim project first:
https://github.com/neovim/neovim/pull/23331

This commit adds this missing wgsl filetype.

23 months agoupdate .wast files syntax highlighting (#12741)
Linda_pp [Wed, 9 Aug 2023 14:45:52 +0000 (23:45 +0900)] 
update .wast files syntax highlighting (#12741)

23 months agopatch 9.0.1679: Cleanup Tests from leftover files v9.0.1679
Christian Brabandt [Thu, 13 Jul 2023 09:45:54 +0000 (11:45 +0200)] 
patch 9.0.1679: Cleanup Tests from leftover files

Problem:    Tests may leave leftover files around
Solution:   Clean up tests and remove files

There were a few failures in 'linux (huge, gcc, testgui, true, true)'
e.g. here: https://github.com/vim/vim/actions/runs/5497376153/jobs/10018060156

,----
| Error detected while processing command line..script /home/runner/work/vim/vim/src/testdir/runtest.vim[585]..function RunTheTest[54]..Test_lvimgrep_crash[16]..TestTimeout[12]..VimLeavePre Autocommands for "*"..function EarlyExit[7]..FinishTesting:
| line   70:
| E445: Other window contains changes
| E937: Attempt to delete a buffer that is in use: Xtest_stable_xxd.txt
| E937: Attempt to delete a buffer that is in use: Xtest_stable_xxd.txt
| E937: Attempt to delete a buffer that is in use: Xtest_stable_xxd.txtmalloc(): unsorted double linked list corrupted
`----

Which is puzzling, because the Xtest_stable_xxd file should have been
long gone after test_crypt.vim is run (and definitely no longer be
staying around in test_quickfix.vim).

So try to clean up properly after a test script is run, just in case any
X<file> is still around. During testing, a found a few leftover files,
which I also fixed in the relevant test-file.

Unfortunately, the test workflow 'linux (huge, gcc, testgui, true,
true)' now seems to fail with 'E1230: Encryption: sodium_mlock()' in
test_crypt.vim. Hopefully this is only temporary.

23 months agoMerge pull request #12740 from k-takata/import-9.0.1678 v9.0.1678
Christian Brabandt [Mon, 7 Aug 2023 15:00:41 +0000 (17:00 +0200)] 
Merge pull request #12740 from k-takata/import-9.0.1678

Bring Bram's last patch (9.0.1678) to GitHub

23 months agopatch 9.0.1678: blade files are not recognized 12740/head
ObserverOfTime [Sun, 6 Aug 2023 18:21:48 +0000 (03:21 +0900)] 
patch 9.0.1678: blade files are not recognized

Problem:    Blade files are not recognized.
Solution:   Add a pattern for Blade files. (closes #12650)

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2 years agopatch 9.0.1677: typo in syntax test input file v9.0.1677
THARAK HEGDE [Sun, 9 Jul 2023 01:38:28 +0000 (02:38 +0100)] 
patch 9.0.1677: typo in syntax test input file

Problem:    Typo in syntax test input file.
Solution:   Fix the typo and the expected dump files. (THARAK HEGDE,
            closes #12635)

2 years agopatch 9.0.1676: warning for buffer in use when exiting early v9.0.1676
Bram Moolenaar [Fri, 7 Jul 2023 23:54:06 +0000 (00:54 +0100)] 
patch 9.0.1676: warning for buffer in use when exiting early

Problem:    Warning for buffer in use when exiting early.
Solution:   Change file names to be able to see what buffer is in use when
            exiting.

2 years agopatch 9.0.1675: test may run into timeout when using valgrind v9.0.1675
Bram Moolenaar [Fri, 7 Jul 2023 23:25:56 +0000 (00:25 +0100)] 
patch 9.0.1675: test may run into timeout when using valgrind

Problem:    Test may run into timeout when using valgrind.
Solution:   Use a longer timeout when using valgrind.

2 years agopatch 9.0.1674: help for builtin functions is not sorted properly v9.0.1674
Bram Moolenaar [Fri, 7 Jul 2023 22:19:18 +0000 (23:19 +0100)] 
patch 9.0.1674: help for builtin functions is not sorted properly

Problem:    Help for builtin functions is not sorted properly.
Solution:   Put err_teapot() help in the right position.

2 years agopatch 9.0.1673: cannot produce a status 418 or 503 message v9.0.1673
Bram Moolenaar [Fri, 7 Jul 2023 17:57:40 +0000 (18:57 +0100)] 
patch 9.0.1673: cannot produce a status 418 or 503 message

Problem:    Cannot produce a status 418 or 503 message.
Solution:   Add err_teapot().

2 years agopatch 9.0.1672: tabline highlight wrong after truncated double width label v9.0.1672
zeertzjq [Sat, 1 Jul 2023 19:24:40 +0000 (20:24 +0100)] 
patch 9.0.1672: tabline highlight wrong after truncated double width label

Problem:    Tabline highlight wrong after truncated double width label.
Solution:   Fill up half a double width character later. (closes #12614)

2 years agopatch 9.0.1671: Termdebug: error with more than 99 breakpoints v9.0.1671
skywind3000 [Wed, 28 Jun 2023 22:27:28 +0000 (23:27 +0100)] 
patch 9.0.1671: Termdebug: error with more than 99 breakpoints

Problem:    Termdebug: error with more than 99 breakpoints.
Solution:   Use a different sign for breakpoint 100 and over. (closes #12589,
            closes #12588)

2 years agopatch 9.0.1670: resetting local option to global value is inconsistent v9.0.1670
Bram Moolenaar [Tue, 27 Jun 2023 20:51:07 +0000 (21:51 +0100)] 
patch 9.0.1670: resetting local option to global value is inconsistent

Problem:    Resetting local option to global value is inconsistent.
Solution:   Handle "<" specifically for 'scrolloff' and 'sidescrolloff'.
            (closes #12594)

2 years agopatch 9.0.1669: Crash syncing swapfile in new buffer when using sodium crypt v9.0.1669
Christian Brabandt [Tue, 27 Jun 2023 17:57:10 +0000 (18:57 +0100)] 
patch 9.0.1669: Crash syncing swapfile in new buffer when using sodium crypt

Problem:    Crash syncing swapfile in new buffer when using sodium crypt.
            (James McCoy)
Solution:   Add checks for sodium encryption. (Christian Brabandt,
            closes #12591, closes #12585)

2 years agopatch 9.0.1668: PEM files are not recognized v9.0.1668
ObserverOfTime [Mon, 26 Jun 2023 21:05:37 +0000 (22:05 +0100)] 
patch 9.0.1668: PEM files are not recognized

Problem:    PEM files are not recognized.
Solution:   Add patterns to match PEM files. (closes #12582)

2 years agopatch 9.0.1667: regression test doesn't fail when fix is reverted v9.0.1667
zeertzjq [Mon, 26 Jun 2023 18:02:43 +0000 (19:02 +0100)] 
patch 9.0.1667: regression test doesn't fail when fix is reverted

Problem:    Regression test doesn't fail when fix is reverted.
Solution:   Add "n" to 'cpoptions' instead of using :winsize. (closes #12587,
            issue #12528)

2 years agopatch 9.0.1666: compiler may warn for uninitialized variable v9.0.1666
Christian Brabandt [Mon, 26 Jun 2023 17:48:09 +0000 (18:48 +0100)] 
patch 9.0.1666: compiler may warn for uninitialized variable

Problem:    Compiler may warn for uninitialized variable.
Solution:   Initialize this_props_len. (Christian Brabandt, closes #12599)

2 years agopatch 9.0.1665: empty CmdlineEnter autocommand causes errors in Ex mode v9.0.1665
Christian Brabandt [Sun, 25 Jun 2023 21:34:22 +0000 (22:34 +0100)] 
patch 9.0.1665: empty CmdlineEnter autocommand causes errors in Ex mode

Problem:    Empty CmdlineEnter autocommand causes errors in Ex mode.
Solution:   Save and restore ex_pressedreturn. (Christian Brabandt,
            closes # 12581, closes #12578)

2 years agopatch 9.0.1664: divide by zero when scrolling with 'smoothscroll' set v9.0.1664
fullwaywang [Sat, 24 Jun 2023 20:58:09 +0000 (21:58 +0100)] 
patch 9.0.1664: divide by zero when scrolling with 'smoothscroll' set

Problem:    Divide by zero when scrolling with 'smoothscroll' set.
Solution:   Avoid using a negative width. (closes #12540, closes #12528)

2 years agopatch 9.0.1663: Termdebug on MS-Windows: some file names are not recognized v9.0.1663
Christian Brabandt [Sat, 24 Jun 2023 19:02:25 +0000 (20:02 +0100)] 
patch 9.0.1663: Termdebug on MS-Windows: some file names are not recognized

Problem:    Termdebug on MS-Windows: some file names are not recognized.
Solution:   Do not always change \t and \n. (Christian Brabandt,
            closes #12565, closes #12560, closes #12550)

2 years agopatch 9.0.1662: crash when using a class member twice v9.0.1662
Bram Moolenaar [Sat, 24 Jun 2023 18:22:21 +0000 (19:22 +0100)] 
patch 9.0.1662: crash when using a class member twice

Problem:    Crash when using a class member twice. (Christian J. Robinson)
Solution:   Make a copy of the value.

2 years agopatch 9.0.1661: BUCK files are not recognized v9.0.1661
Son Luong Ngoc [Sat, 24 Jun 2023 16:11:04 +0000 (17:11 +0100)] 
patch 9.0.1661: BUCK files are not recognized

Problem:    BUCK files are not recognized.
Solution:   Recognize BUCK files as "bzl". (Son Luong Ngoc, closes #12564)

2 years agopatch 9.0.1660: error for using matchfuzzy() returning a list of dicts v9.0.1660
Yegappan Lakshmanan [Sat, 24 Jun 2023 15:42:25 +0000 (16:42 +0100)] 
patch 9.0.1660: error for using matchfuzzy() returning a list of dicts

Problem:    Error for using matchfuzzy() in Vim9 script returning a list of
            dicts.
Solution:   Make return type of matchfuzzy() list<any>. (Yegappan Lakshmanan,
            closes #12574)

2 years agopatch 9.0.1659: Termdebug: default highlight cleared if changing colorscheme v9.0.1659
Christian Brabandt [Sat, 24 Jun 2023 13:20:36 +0000 (14:20 +0100)] 
patch 9.0.1659: Termdebug: default highlight cleared if changing colorscheme

Problem:    Termdebug: default highlight cleared when changing colorscheme.
Solution:   Use a ColorScheme autocommand. (Christian Brabandt, closes #12566,
            closes #12555)

2 years agopatch 9.0.1658: autoload files for "zig" are not installed v9.0.1658
Christian Brabandt [Sat, 24 Jun 2023 12:30:04 +0000 (13:30 +0100)] 
patch 9.0.1658: autoload files for "zig" are not installed

Problem:    Autoload files for "zig" are not installed.
Solution:   Add install and uninstall rules in the makefile. (Christian
            Brabandt, closes #12577, closes #12567)

2 years agopatch 9.0.1657: one more syntax test depends on the system v9.0.1657
Bram Moolenaar [Sat, 24 Jun 2023 00:35:51 +0000 (01:35 +0100)] 
patch 9.0.1657: one more syntax test depends on the system

Problem:    One more syntax test depends on the system.
Solution:   Use "dash" instead of "sh".

2 years agopatch 9.0.1656: syntax test fails when detected shell type differs v9.0.1656
Bram Moolenaar [Fri, 23 Jun 2023 23:56:50 +0000 (00:56 +0100)] 
patch 9.0.1656: syntax test fails when detected shell type differs

Problem:    Syntax test fails when detected shell type differs.
Solution:   Avoid using "/bin/sh", it depends on the system.  Add a check that
            the shell type detection is correct.

2 years agopatch 9.0.1655: syntax test fails when Vim window is not tall enough v9.0.1655
Bram Moolenaar [Fri, 23 Jun 2023 21:59:26 +0000 (22:59 +0100)] 
patch 9.0.1655: syntax test fails when Vim window is not tall enough

Problem:    Syntax test fails when Vim window is not tall enough.
Solution:   Make sure each terminal window is closed.

2 years agopatch 9.0.1654: MS-Windows: test for default 'viewdir' fails v9.0.1654
Bram Moolenaar [Fri, 23 Jun 2023 21:56:47 +0000 (22:56 +0100)] 
patch 9.0.1654: MS-Windows: test for default 'viewdir' fails

Problem:    MS-Windows: test for default 'viewdir' fails.
Solution:   Escape the pattern.

2 years agopatch 9.0.1653: Amiga: default 'viewdir' may not work v9.0.1653
Christian Brabandt [Fri, 23 Jun 2023 21:23:01 +0000 (22:23 +0100)] 
patch 9.0.1653: Amiga: default 'viewdir' may not work

Problem:    Amiga: default 'viewdir' may not work.
Solution:   Use "home:" instead of "$VIM". Add a test. (Christian Brabandt,
            closes #12576)

2 years agopatch 9.0.1652: unclear why syntax test fails on Mac v9.0.1652
Bram Moolenaar [Fri, 23 Jun 2023 20:36:31 +0000 (21:36 +0100)] 
patch 9.0.1652: unclear why syntax test fails on Mac

Problem:    Unclear why syntax test fails on Mac.
Solution:   Echo v:errors when it's not empty.

2 years agopatch 9.0.1651: unclear why syntax test fails on Mac v9.0.1651
Bram Moolenaar [Fri, 23 Jun 2023 18:37:19 +0000 (19:37 +0100)] 
patch 9.0.1651: unclear why syntax test fails on Mac

Problem:    Unclear why syntax test fails on Mac.
Solution:   Temporarily show the whole "messages" file.

2 years agopatch 9.0.1650: MS-Windows: default 'viewdir' may include read-only directory v9.0.1650
Bram Moolenaar [Fri, 23 Jun 2023 15:15:13 +0000 (16:15 +0100)] 
patch 9.0.1650: MS-Windows: default 'viewdir' may include read-only directory

Problem:    MS-Windows: default 'viewdir' may include read-only directory.
Solution:   Use $HOME instead of $VIM for 'viewdir' default. (closes #12119)

2 years agopatch 9.0.1649: syntax test failure causes script to abort v9.0.1649
Bram Moolenaar [Thu, 22 Jun 2023 22:04:11 +0000 (23:04 +0100)] 
patch 9.0.1649: syntax test failure causes script to abort

Problem:    Syntax test failure causes script to abort.
Solution:   Fix appending string to list.

2 years agopatch 9.0.1648: result of syntax tests is hard to see v9.0.1648
Bram Moolenaar [Thu, 22 Jun 2023 21:38:54 +0000 (22:38 +0100)] 
patch 9.0.1648: result of syntax tests is hard to see

Problem:    Result of syntax tests is hard to see.
Solution:   List the failed tests.

2 years agopatch 9.0.1647: insufficient testing for syntax plugins v9.0.1647
Bram Moolenaar [Thu, 22 Jun 2023 20:57:51 +0000 (21:57 +0100)] 
patch 9.0.1647: insufficient testing for syntax plugins

Problem:    Insufficient testing for syntax plugins.
Solution:   Add shell file examples. (Charles Campbell)  Create a messages
            file for easier debugging and reporting the test results.

2 years agopatch 9.0.1646: CI: codecov may take a very long time to run v9.0.1646
Philip H [Thu, 22 Jun 2023 17:12:46 +0000 (18:12 +0100)] 
patch 9.0.1646: CI: codecov may take a very long time to run

Problem:    CI: codecov may take a very long time to run.
Solution:   Add a timeout. (Philip Heiduck, closes #12559)

2 years agopatch 9.0.1645: zserio files are not recognized v9.0.1645
=?UTF-8?q?Dominique=20Pell=C3=A9?= [Thu, 22 Jun 2023 13:36:39 +0000 (14:36 +0100)] 
patch 9.0.1645: zserio files are not recognized

Problem:    zserio files are not recognized.
Solution:   Add a pattern for zserio files. (Dominique Pellé,
            closes #12544)

2 years agopatch 9.0.1644: not all filetype file name matches are tested v9.0.1644
smjonas [Thu, 22 Jun 2023 11:41:19 +0000 (12:41 +0100)] 
patch 9.0.1644: not all filetype file name matches are tested

Problem:    Not all filetype file name matches are tested.
Solution:   Add more file names to test with. (Jonas Strittmatter,
            closes #12569)

2 years agopatch 9.0.1643: filetype detection fails if file name ends in many '~' v9.0.1643
Bram Moolenaar [Thu, 22 Jun 2023 11:18:57 +0000 (12:18 +0100)] 
patch 9.0.1643: filetype detection fails if file name ends in many '~'

Problem:    Filetype detection fails if file name ends in many '~'.
Solution:   Strip multiple '~' at the same time. (closes #12553)

2 years agopatch 9.0.1642: build failure with tiny features v9.0.1642
Bram Moolenaar [Wed, 21 Jun 2023 14:51:47 +0000 (15:51 +0100)] 
patch 9.0.1642: build failure with tiny features

Problem:    Build failure with tiny features.
Solution:   Add #ifdef's.

2 years agopatch 9.0.1641: the log file does not give information about window sizes v9.0.1641
Bram Moolenaar [Wed, 21 Jun 2023 12:42:48 +0000 (13:42 +0100)] 
patch 9.0.1641: the log file does not give information about window sizes

Problem:    The log file does not give information about window sizes.
Solution:   Add a few log messages about obtaining the window size.

2 years agopatch 9.0.1640: compiler warning for unused variables without crypt feature v9.0.1640
Bram Moolenaar [Sat, 17 Jun 2023 15:19:30 +0000 (16:19 +0100)] 
patch 9.0.1640: compiler warning for unused variables without crypt feature

Problem:    Compiler warning for unused variables without the crypt feature.
Solution:   Adjust #ifdefs

2 years agopatch 9.0.1639: build failure without the crypt feature v9.0.1639
Bram Moolenaar [Sat, 17 Jun 2023 14:35:03 +0000 (15:35 +0100)] 
patch 9.0.1639: build failure without the crypt feature

Problem:    Build failure without the crypt feature.
Solution:   Adjust #ifdefs

2 years agopatch 9.0.1638: crypt tests hang and cause memory errors 12556/head v9.0.1638
Bram Moolenaar [Sat, 17 Jun 2023 14:00:27 +0000 (15:00 +0100)] 
patch 9.0.1638: crypt tests hang and cause memory errors

Problem:    crypt tests hang and cause memory errors
Solution:   Move variable to start of function.

2 years agopatch 9.0.1637: compiler warning for uninitialized variable v9.0.1637
Christian Brabandt [Fri, 16 Jun 2023 20:42:06 +0000 (21:42 +0100)] 
patch 9.0.1637: compiler warning for uninitialized variable

Problem:    Compiler warning for uninitialized variable.
Solution:   Move the variable to an inner block and initialize it. (Christian
            Brabandt, closes #12549)

2 years agopatch 9.0.1636: expanding a pattern interferes with cmdline completion v9.0.1636
zeertzjq [Thu, 15 Jun 2023 21:51:57 +0000 (22:51 +0100)] 
patch 9.0.1636: expanding a pattern interferes with cmdline completion

Problem:    Expanding a pattern interferes with command line completion.
Solution:   Set the file index only when appropriate. (closes #12519)

2 years agopatch 9.0.1635: error message is cleared when removing mode message v9.0.1635
Bram Moolenaar [Thu, 15 Jun 2023 17:44:50 +0000 (18:44 +0100)] 
patch 9.0.1635: error message is cleared when removing mode message

Problem:    Error message is cleared when removing mode message.
Solution:   Also reset flags when the message is further down.

2 years agopatch 9.0.1634: message is cleared when removing mode message v9.0.1634
Bram Moolenaar [Thu, 15 Jun 2023 15:40:02 +0000 (16:40 +0100)] 
patch 9.0.1634: message is cleared when removing mode message

Problem:    Message is cleared when removing mode message (Gary Johnson).
Solution:   Do not clear the command line after displaying a message.

2 years agopatch 9.0.1633: duplicate code for converting float to string v9.0.1633
zeertzjq [Thu, 15 Jun 2023 09:56:41 +0000 (10:56 +0100)] 
patch 9.0.1633: duplicate code for converting float to string

Problem:    Duplicate code for converting float to string.
Solution:   Use tv_get_string(). (closes #12521)

2 years agopatch 9.0.1632: not all cabal config files are recognized v9.0.1632
Marcin Szamotulski [Wed, 14 Jun 2023 18:45:43 +0000 (19:45 +0100)] 
patch 9.0.1632: not all cabal config files are recognized

Problem:    Not all cabal config files are recognized.
Solution:   Add a couple of patterns. (Marcin Szamotulski, closes #12463)

2 years agopatch 9.0.1631: passing wrong variable type to option gives multiple errors v9.0.1631
zeertzjq [Wed, 14 Jun 2023 15:39:54 +0000 (16:39 +0100)] 
patch 9.0.1631: passing wrong variable type to option gives multiple errors

Problem:    Passing a wrong variable type to an option gives multiple errors.
Solution:   Bail out early on failure. (closes #12504)

2 years agopatch 9.0.1630: "make clean" at the toplevel fails v9.0.1630
Ben Jackson [Wed, 14 Jun 2023 14:10:02 +0000 (15:10 +0100)] 
patch 9.0.1630: "make clean" at the toplevel fails

Problem:    "make clean" at the toplevel fails.
Solution:   Clean the indent and syntax directories in a sub-shell.  (Ben
            Jackson, closes #12536, closes #12526)

2 years agopatch 9.0.1629: having utf16idx() rounding up is inconvenient v9.0.1629
Yegappan Lakshmanan [Wed, 14 Jun 2023 12:10:15 +0000 (13:10 +0100)] 
patch 9.0.1629: having utf16idx() rounding up is inconvenient

Problem:    Having utf16idx() rounding up is inconvenient.
Solution:   Make utf16idx() round down. (Yegappan Lakshmanan, closes #12523)

2 years agopatch 9.0.1628: syntax tests fail on FreeBSD v9.0.1628
K.Takata [Tue, 13 Jun 2023 21:44:57 +0000 (22:44 +0100)] 
patch 9.0.1628: syntax tests fail on FreeBSD

Problem:    Syntax tests fail on FreeBSD.
Solution:   Pass the Vim executable path with VIMPROG. (Ken Takata,
            closes #12535)  Adjust the paths.

2 years agopatch 9.0.1627: no generic mechanism to test syntax plugins v9.0.1627
Bram Moolenaar [Sun, 11 Jun 2023 18:04:18 +0000 (19:04 +0100)] 
patch 9.0.1627: no generic mechanism to test syntax plugins

Problem:    No generic mechanism to test syntax plugins.
Solution:   Add a syntax plugin test mechanism, using screendumps.  Add a
            simple test for "c".

2 years agoUpdate runtime files
Bram Moolenaar [Sat, 10 Jun 2023 20:40:39 +0000 (21:40 +0100)] 
Update runtime files

2 years agopatch 9.0.1626: Visual area not shown when using 'showbreak' v9.0.1626
Bram Moolenaar [Sat, 10 Jun 2023 18:40:30 +0000 (19:40 +0100)] 
patch 9.0.1626: Visual area not shown when using 'showbreak'

Problem:    Visual area not shown when using 'showbreak' and start of line is
            not visible. (Jaehwang Jung)
Solution:   Adjust "fromcol" for the space taken by 'showbreak'.
            (closes #12514)

2 years agopatch 9.0.1625: "super" is not considered a reserved name v9.0.1625
Bram Moolenaar [Sat, 10 Jun 2023 18:00:12 +0000 (19:00 +0100)] 
patch 9.0.1625: "super" is not considered a reserved name

Problem:    "super" is not considered a reserved name.
Solution:   Add "super" to the list of reserved names. (closes #12515)

2 years agopatch 9.0.1624: crash when calling object constructor v9.0.1624
Bram Moolenaar [Sat, 10 Jun 2023 15:45:13 +0000 (16:45 +0100)] 
patch 9.0.1624: crash when calling object constructor

Problem:    Crash when calling object constructor from legacy script. (Israel
            Chauca Fuentes)
Solution:   Pass a pointer for "ufunc". (closes #12502)

2 years agopatch 9.0.1623: the program to filetype translation is not exported v9.0.1623
Bram Moolenaar [Fri, 9 Jun 2023 20:01:47 +0000 (21:01 +0100)] 
patch 9.0.1623: the program to filetype translation is not exported

Problem:    The program to filetype translation is not exported.
Solution:   Export Exe2filetype().

2 years agopatch 9.0.1622: filetype name t32 is a bit obscure v9.0.1622
Christoph Sax [Fri, 9 Jun 2023 18:20:04 +0000 (19:20 +0100)] 
patch 9.0.1622: filetype name t32 is a bit obscure

Problem:    Filetype name t32 is a bit obscure.
Solution:   Rename t32 to trace32. (Christoph Sax, closes #12512)

2 years agopatch 9.0.1621: FILETYPE_FILE is defined to the same value multiple times v9.0.1621
Bram Moolenaar [Thu, 8 Jun 2023 21:16:23 +0000 (22:16 +0100)] 
patch 9.0.1621: FILETYPE_FILE is defined to the same value multiple times

Problem:    FILETYPE_FILE is defined to the same value multiple times.  Same
            for a few similar macros.
Solution:   Define FILETYPE_FILE and others in feature.h only

2 years agopatch 9.0.1620: Nix files are not recognized from the hashbang line v9.0.1620
Bram Moolenaar [Thu, 8 Jun 2023 20:27:13 +0000 (21:27 +0100)] 
patch 9.0.1620: Nix files are not recognized from the hashbang line

Problem:    Nix files are not recognized from the hashbang line.
Solution:   Add a hashbang check. (issue #12507)

2 years agopatch 9.0.1619: the focus gained/lost escape sequences cause trouble v9.0.1619
Bram Moolenaar [Thu, 8 Jun 2023 17:44:01 +0000 (18:44 +0100)] 
patch 9.0.1619: the focus gained/lost escape sequences cause trouble

Problem:    The focus gained/lost escape sequences cause trouble for a
            terminal where Vim does not expect them.
Solution:   Always recognize the codes for focus gained/lost. (closes #12499)

2 years agopatch 9.0.1618: Trace32 files are not recognized v9.0.1618
Christoph Sax [Thu, 8 Jun 2023 16:57:19 +0000 (17:57 +0100)] 
patch 9.0.1618: Trace32 files are not recognized

Problem:    Trace32 files are not recognized.
Solution:   Add patterns for the t32 filetype. (Christoph Sax, closes #12505)

2 years agopatch 9.0.1617: charidx() result is not consistent with byteidx() v9.0.1617
Yegappan Lakshmanan [Thu, 8 Jun 2023 16:09:45 +0000 (17:09 +0100)] 
patch 9.0.1617: charidx() result is not consistent with byteidx()

Problem:    charidx() and utf16idx() result is not consistent with byteidx().
Solution:   When the index is equal to the length of the text return the
            lenght of the text instead of -1. (Yegappan Lakshmanan,
            closes #12503)

2 years agopatch 9.0.1616: quickfix text field is truncated v9.0.1616
Shane Harper [Wed, 7 Jun 2023 18:09:57 +0000 (19:09 +0100)] 
patch 9.0.1616: quickfix text field is truncated

Problem:    Quickfix text field is truncated.
Solution:   Fix output of text field after pattern field in quickfix buffer.
            (Shane Harper, closes #12498)

2 years agopatch 9.0.1615: URL shortcut files are not recognized v9.0.1615
ObserverOfTime [Wed, 7 Jun 2023 17:27:01 +0000 (18:27 +0100)] 
patch 9.0.1615: URL shortcut files are not recognized

Problem:    URL shortcut files are not recognized.
Solution:   Add a pattern for URL shortcut files. (closes #12474)

2 years agopatch 9.0.1614: strlen() called too often for :spellrepall v9.0.1614
zeertzjq [Tue, 6 Jun 2023 14:59:59 +0000 (15:59 +0100)] 
patch 9.0.1614: strlen() called too often for :spellrepall

Problem:    strlen() called too often for :spellrepall.
Solution:   Store the result in a variable. (closes #12497)

2 years agopatch 9.0.1613: some make output gets picked up by 'errorformat' v9.0.1613
Gregory Anders [Mon, 5 Jun 2023 20:52:46 +0000 (21:52 +0100)] 
patch 9.0.1613: some make output gets picked up by 'errorformat'

Problem:    Some make output gets picked up by 'errorformat'.
Solution:   Ignore make output by default. (Gregory Anders, closes #12481)

2 years agopatch 9.0.1612: "skipcol" not reset when using multi-byte characters v9.0.1612
Bram Moolenaar [Mon, 5 Jun 2023 19:44:55 +0000 (20:44 +0100)] 
patch 9.0.1612: "skipcol" not reset when using multi-byte characters

Problem:    "skipcol" not reset when using multi-byte characters.
Solution:   Compare with w_virtcol instead of w_cursor.col. (closes #12457)

2 years agopatch 9.0.1611: v:maxcol can be changed in a :for loop v9.0.1611
Bram Moolenaar [Mon, 5 Jun 2023 18:46:18 +0000 (19:46 +0100)] 
patch 9.0.1611: v:maxcol can be changed in a :for loop

Problem:    v:maxcol can be changed in a :for loop.
Solution:   Check for read-only loop variable. (closes #12470)