]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
23 months agopatch 9.0.1712: missing null check in object_clear() 12757/head v9.0.1712
Jia-Ju Bai [Sun, 13 Aug 2023 18:04:04 +0000 (20:04 +0200)] 
patch 9.0.1712: missing null check in object_clear()

Problem: missing null check in object_clear()
Solution: Add null check of cl

closes: #12627

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Jia-Ju Bai <baijiaju@buaa.edu.cn>
23 months agopatch 9.0.1711: dead code in charset.c v9.0.1711
zeertzjq [Mon, 3 Jul 2023 14:00:04 +0000 (22:00 +0800)] 
patch 9.0.1711: dead code in charset.c

Problem: dead code in charset.c
Solution: remove it

linetabsize_col() calls init_chartabsize_arg() with 0 as "lnum", so
cts.cts_has_prop_with_text is always FALSE.

closes: #PR

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
23 months agopatch 9.0.1710: scrolloff options work slightly different v9.0.1710
Christian Brabandt [Sun, 13 Aug 2023 17:43:42 +0000 (19:43 +0200)] 
patch 9.0.1710: scrolloff options work slightly different

Problem: sidescrolloff and scrolloff options work slightly
         different than other global-local options
Solution: Make it behave consistent for all global-local options

It was noticed, that sidescrolloff and scrolloff options behave
differently in comparison to other global-local window options like
'listchars'

So make those two behave like other global-local options. Also add some
extra documentation for a few special local-window options.

Add a few tests to make sure all global-local window options behave
similar

closes: #12956
closes: #12643

Signed-off-by: Christian Brabandt <cb@256bit.org>
23 months agopatch 9.0.1709: dynamic build with python 3.12 breaks v9.0.1709
Zdenek Dohnal [Sun, 13 Aug 2023 17:37:09 +0000 (19:37 +0200)] 
patch 9.0.1709: dynamic build with python 3.12 breaks

Problem: dynamic build with python 3.12 breaks
Solution: if_python3.c: Fix building dynamic Python3 interpreter

There are new extern global variables defined in python3 development
files, which types are within python3 library, so they break dynamic
python3 interpret Vim plugin.

Since the variables are used in macro `Py_SIZE` which is used in other
python3 headers, the dummy variables have to defined before including
Python.h.

closes: #12660

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Zdenek Dohnal <zdohnal@redhat.com>
23 months agopatch 9.0.1708: getcompletion() failes for user-defined commands v9.0.1708
Christian Brabandt [Mon, 17 Jul 2023 18:09:37 +0000 (20:09 +0200)] 
patch 9.0.1708: getcompletion() failes for user-defined commands

Problem: getcompletion() failes for user-defined commands
Solution: set context for completion function

closes: #12681
closes: #12680

Signed-off-by: Christian Brabandt <cb@256bit.org>
23 months agopatch 9.0.1707: Cannot wrap around in popup_filter_menu() v9.0.1707
Christian Brabandt [Sun, 13 Aug 2023 17:25:28 +0000 (19:25 +0200)] 
patch 9.0.1707: Cannot wrap around in popup_filter_menu()

Problem: Cannot wrap around in popup_filter_menu()
Solution: Allow to wrap around by default

Currently, it is not possible, to wrap around at the end of the list
using e.g. down (and go back to the top) or up at the beginning of the
list and go directly to the last item. This is not consistent behaviour
with e.g. how the pum-menu currently works, so let's just allow this.

Also adjust tests about it.

closes: #12689
closes: #12693

Signed-off-by: Christian Brabandt <cb@256bit.org>
23 months agopatch 9.0.1706: typos in the xxd manpage v9.0.1706
Matthias Braun [Sun, 13 Aug 2023 17:20:35 +0000 (19:20 +0200)] 
patch 9.0.1706: typos in the xxd manpage

Problem: typos in the xxd manpage
Solution: Fix typos and formatting

closes: #12645

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Matthias Braun <mb720@users.noreply.github.com>
23 months agoruntime: Remove Brams email in indent/README.txt
Christian Brabandt [Sun, 13 Aug 2023 16:17:21 +0000 (18:17 +0200)] 
runtime: Remove Brams email in indent/README.txt

Signed-off-by: Christian Brabandt <cb@256bit.org>
23 months agopatch 9.0.1705: cursor position wrong when clicking on an unprintable char v9.0.1705
zeertzjq [Sun, 13 Aug 2023 16:11:05 +0000 (18:11 +0200)] 
patch 9.0.1705: cursor position wrong when clicking on an unprintable char

Problem:  cursor position wrong when clicking on an unprintable char
Solution: Don't update prev_ptr when wlv.n_extra is not zero.

closes: #12664

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
23 months agopatch 9.0.1704: Cannot use positional arguments for printf() v9.0.1704
Christ van Willegen [Sun, 13 Aug 2023 16:03:14 +0000 (18:03 +0200)] 
patch 9.0.1704: Cannot use positional arguments for printf()

Problem: Cannot use positional arguments for printf()
Solution: Support positional arguments in string formatting

closes: #12140

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
23 months agoruntime: Add a few more remarks about Bram and new runtime files
Christian Brabandt [Sun, 13 Aug 2023 15:53:07 +0000 (17:53 +0200)] 
runtime: Add a few more remarks about Bram and new runtime files

Signed-off-by: Christian Brabandt <cb@256bit.org>
23 months agopatch 9.0.1703: Vim9 Calling a method in an extended class fails v9.0.1703
Yegappan Lakshmanan [Sun, 13 Aug 2023 15:41:26 +0000 (17:41 +0200)] 
patch 9.0.1703: Vim9 Calling a method in an extended class fails

Problem: Vim9 Calling a method in an extended class fails
Solution: use method index directly

closes: #12778

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
23 months agoruntime(pymanifest): fix mistake in syntax definition
ObserverOfTime [Sun, 13 Aug 2023 08:36:28 +0000 (10:36 +0200)] 
runtime(pymanifest): fix mistake in syntax definition

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
23 months agoFarewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt [Sun, 13 Aug 2023 08:33:05 +0000 (10:33 +0200)] 
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)

* Dedicate upcoming Vim 9.1 to Bram

Also replace in a few more places Brams email address and mention new
maintainers.

* Remove Bram from any Maintainer role

* runtime: Align Header

* it's mailing list not mailinglist

23 months agopatch 9.0.1702: Undo test is flaky v9.0.1702
zeertzjq [Sun, 13 Aug 2023 08:29:26 +0000 (10:29 +0200)] 
patch 9.0.1702: Undo test is flaky

Problem:  Undo test is flaky.
Solution: Apply filter and change time to "1 second ago" in both dumps.

closes: #12771

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
23 months agoAdd syntax & ftplugin for pymanifest (#12773)
ObserverOfTime [Sun, 13 Aug 2023 08:26:20 +0000 (11:26 +0300)] 
Add syntax & ftplugin for pymanifest (#12773)

23 months agoUpdate iss syntax file (#11890)
ObserverOfTime [Sun, 13 Aug 2023 08:25:41 +0000 (11:25 +0300)] 
Update iss syntax file (#11890)

- Add 'ExternalSize:' parameter
- Add 'setntfscompression' files flag
- Fix escaped left brace highlight
- Fix 'String:' parameter highlight
- Remove trailing whitespace

23 months agopatch 9.0.1701: vim9 crash when class member overridden v9.0.1701
Yegappan Lakshmanan [Sun, 13 Aug 2023 08:19:38 +0000 (10:19 +0200)] 
patch 9.0.1701: vim9 crash when class member overridden

Problem: vim9 crash when class member overridden
Solution: Use method_count field instead

closes: #12676
closes: #12677

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
23 months agopatch 9.0.1700: Cannot compile with dynamic perl < 5.38 v9.0.1700
K.Takata [Sun, 13 Aug 2023 08:15:05 +0000 (10:15 +0200)] 
patch 9.0.1700: Cannot compile with dynamic perl < 5.38

Problem: Cannot compile with dynamic perl < 5.38 (after 9.0.1681)
Solution: Fix if_perl/dyn from perl 5.32 to 5.38

closes: #12755

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: K.Takata <kentkt@csc.jp>
23 months agopatch 9.0.1699: compile warning for xdiff/xutils on MS-Windows v9.0.1699
Mike Williams [Sat, 12 Aug 2023 18:47:43 +0000 (20:47 +0200)] 
patch 9.0.1699: compile warning for xdiff/xutils on MS-Windows

Problem: compile warning for xdiff/xutils on MS-Windows
Solution: add explicit type cast from size_t to long

closes: #12531

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Mike Williams <mikew@globalgraphics.com>
23 months agopatch 9.0.1698: Test_map_restore_sid fails in GUI v9.0.1698
zeertzjq [Sat, 12 Aug 2023 08:31:27 +0000 (16:31 +0800)] 
patch 9.0.1698: Test_map_restore_sid fails in GUI

Problem: Test_map_restore_sid fails in GUI
Solution: Feed an unsimplified Ctrl-B

closes: #12770

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
23 months agopatch 9.0.1697: incsearch test not sufficient v9.0.1697
Christ van Willegen [Sat, 12 Aug 2023 18:17:26 +0000 (20:17 +0200)] 
patch 9.0.1697: incsearch test not sufficient

Problem: incsearch test not sufficient (after 9.0.1691)
Solution: add an additional test

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
23 months agopatch 9.0.1696: sodium_mlock may still fail in CI v9.0.1696
Christian Brabandt [Sat, 12 Aug 2023 07:41:23 +0000 (09:41 +0200)] 
patch 9.0.1696: sodium_mlock may still fail in CI

Problem: sodium_mlock may still fail in CI
Solution: Catch E1230 in testscript and skip test

Signed-off-by: Christian Brabandt <cb@256bit.org>
23 months agopatch 9.0.1695: Crash with overlong textprop above v9.0.1695
Christian Brabandt [Fri, 11 Aug 2023 22:14:14 +0000 (00:14 +0200)] 
patch 9.0.1695: Crash with overlong textprop above

Problem: Crash with overlong textprop above
Solution: Consider only positive padding

closes: #12665
closes: #12661

Signed-off-by: Christian Brabandt <cb@256bit.org>
23 months agopatch 9.0.1694: wrong mapping applied when replaying a char search v9.0.1694
zeertzjq [Fri, 11 Aug 2023 22:09:31 +0000 (00:09 +0200)] 
patch 9.0.1694: wrong mapping applied when replaying a char search

Problem: wrong mapping applied when replaying a char search
Solution: Store a NOP after the ESC

closes: #12708
closes: #6350

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
23 months agopatch 9.0.1693: Ctrl-Q not handled like Ctrl-V in replace mode v9.0.1693
Christian Brabandt [Fri, 11 Aug 2023 22:03:57 +0000 (00:03 +0200)] 
patch 9.0.1693: Ctrl-Q not handled like Ctrl-V in replace mode

Problem: Ctrl-Q not handled like Ctrl-V in replace mode
Solution: Handle Ctrl-Q like Ctrl-V

closes: #12686
closes: #12684

Signed-off-by: Christian Brabandt <cb@256bit.org>
23 months agopatch 9.0.1692: Android not handling AI_V4MAPPED ai_flag v9.0.1692
cions [Fri, 11 Aug 2023 21:53:13 +0000 (23:53 +0200)] 
patch 9.0.1692: Android not handling AI_V4MAPPED ai_flag

Problem: Android not handling AI_V4MAPPED ai_flag
Solution: don't set AI_V4MAPPED flag when on Android, since
          Android's getaddrinfo returns EAI_BADFLAGS if ai_flags
          contains it

closes: #12613

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: cions <gh.cions@gmail.com>
23 months agopatch 9.0.1691: wrong viewport restored for incsearch and smoothscroll v9.0.1691
zeertzjq [Fri, 11 Aug 2023 21:48:27 +0000 (23:48 +0200)] 
patch 9.0.1691: wrong viewport restored for incsearch and smoothscroll

Problem: wrong viewport restored for incsearch and smoothscroll
Solution: Save and restore skipcol as well

closes: #12713

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
23 months agopatch 9.0.1690: popup_create() not aborting on errors v9.0.1690
Christian Brabandt [Fri, 11 Aug 2023 21:42:02 +0000 (23:42 +0200)] 
patch 9.0.1690: popup_create() not aborting on errors

Problem: popup_create() not aborting on errors
Solution: check for errors in arguments given and abort if an error
          occurred

closes: #12711

Signed-off-by: Christian Brabandt <cb@256bit.org>
23 months agopatch 9.0.1689: python 3.12 produces warnings and fails test v9.0.1689
Zdenek Dohnal [Fri, 11 Aug 2023 21:32:23 +0000 (23:32 +0200)] 
patch 9.0.1689: python 3.12 produces warnings and fails test

Problem: python 3.12 produces warnings and fails test
Solution: Make use of raw strings in python3 tests

closes: #12765

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Zdenek Dohnal <zdohnal@redhat.com>
23 months agopatch 9.0.1688: cannot store custom data in quickfix list v9.0.1688
Tom Praschan [Fri, 11 Aug 2023 21:26:12 +0000 (23:26 +0200)] 
patch 9.0.1688: cannot store custom data in quickfix list

Problem: cannot store custom data in quickfix list
Solution: add `user_data` field for the quickfix list

closes: #11818

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Tom Praschan <13141438+tom-anders@users.noreply.github.com>
23 months agopatch 9.0.1687: mapset() not properly handling script ID v9.0.1687
zeertzjq [Fri, 11 Aug 2023 21:15:38 +0000 (23:15 +0200)] 
patch 9.0.1687: mapset() not properly handling script ID

Problem: mapset() not properly handling script ID
Solution: replace_termcodes() may accept a script ID

closes: #12699
closes: #12697

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
23 months ago.cirrus.yml: skip pkg update for FreeBSD 13.1 (#12767)
Philip H [Fri, 11 Aug 2023 21:10:02 +0000 (23:10 +0200)] 
.cirrus.yml: skip pkg update for FreeBSD 13.1 (#12767)

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)