]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
22 months agopatch 9.1.0095: tests: test_restricted() fails v9.1.0095
Christian Brabandt [Sat, 10 Feb 2024 12:50:54 +0000 (13:50 +0100)] 
patch 9.1.0095: tests: test_restricted() fails

Problem:  tests: test_restricted() fails
          (after: v9.1.0091)
Solution: Add a space before the pipecmd and the actual Vim command to
          run

Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0094: xxd: buffer-overflow when writing color output v9.1.0094
Goffredo Baroncelli [Sat, 10 Feb 2024 12:31:06 +0000 (13:31 +0100)] 
patch 9.1.0094: xxd: buffer-overflow when writing color output

Problem:  xxd: buffer-overflow when writing color output
Solution: properly account for the color escape sequences and
          adjust LLEN macro
          (Goffredo Baroncelli)

xxd: crash with higer number of column

xxd writes the data into a buffer before printing. Unfortunately
the buffer doesn't consider the space consumed by the escape
sequences used to change the color of the character.

BEFORE:
$ xxd -Ralways -c 256 /etc/passwd
Segmentation fault (core dumped)

AFTER:
$ ./xxd -Ralways -c 256 /etc/passwd
00000000: 726f 6f74 3a78 3a30 3a30 3a72 6f6f 743a 2f72 [...]

To solve this issue I had to increase the size of the buffer
considering for each byte of data 11 further characters for the
color escape sequence.

closes: #14003

Signed-off-by: Goffredo Baroncelli <kreijack@libero.it>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0093: Still a qsort() comparison function that returns result of subtraction v9.1.0093
zeertzjq [Sat, 10 Feb 2024 12:24:03 +0000 (13:24 +0100)] 
patch 9.1.0093: Still a qsort() comparison function that returns result of subtraction

Problem:  Still a qsort() comparison function fuzzy_match_item_compare()
          that returns result of subtraction (after 9.1.0089).
Solution: Use an explicit comparison instead of subtraction.
          (zeertzjq)

closes: #14004

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0092: Compiler warning for missing type in scroll_event() v9.1.0092
Christian Brabandt [Sat, 10 Feb 2024 12:17:16 +0000 (13:17 +0100)] 
patch 9.1.0092: Compiler warning for missing type in scroll_event()

Problem:  Compiler warning for missing type in scroll_event()
          (chdiza)
Solution: Declare display_type explicitly as integer

fixes: #14005

Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0091: Syntax test fails when run with non C locale v9.1.0091
Christian Brabandt [Sat, 10 Feb 2024 12:02:17 +0000 (13:02 +0100)] 
patch 9.1.0091: Syntax test fails when run with non C locale

Problem:  Syntax test fails when run with non C locale
Solution: Run syntax tests with C locale, clean up Xtestscript file,
          strip environment variables from GetVimCommand()
          (h-east)

closes: #14007

Co-authored-by: h-east <h.east.727@gmail.com>
Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0090: Assigning wrong colors when parsing terminal OSC response v9.1.0090
Maxim Kim [Fri, 9 Feb 2024 22:11:54 +0000 (23:11 +0100)] 
patch 9.1.0090: Assigning wrong colors when parsing terminal OSC response

Problem:  Assigning wrong colors when parsing terminal OSC response
Solution: Correctly assign Green and Blue from the terminal response
          (Maxim Kim)

closes: #13981

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(vim): Fix indent after line with literal dict
Andrew Radev [Fri, 9 Feb 2024 18:44:28 +0000 (19:44 +0100)] 
runtime(vim): Fix indent after line with literal dict

closes: #13966

Signed-off-by: Andrew Radev <andrey.radev@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0089: qsort() comparison functions should be transitive v9.1.0089
Christian Brabandt [Fri, 9 Feb 2024 18:39:14 +0000 (19:39 +0100)] 
patch 9.1.0089: qsort() comparison functions should be transitive

Problem:  qsort() comparison functions should be transitive
Solution: Do not subtract values, but rather use explicit comparisons

Improve qsort() comparison functions

There has been a recent report on qsort() causing out-of-bounds read &
write in glibc for non transitive comparison functions
https://www.qualys.com/2024/01/30/qsort.txt

Even so the bug is in glibc's implementation of the qsort() algorithm,
it's bad style to just use substraction for the comparison functions,
which may cause overflow issues and as hinted at in OpenBSD's manual
page for qsort(): "It is almost always an error to use subtraction to
compute the return value of the comparison function."

So check the qsort() comparison functions and change them to be safe.

closes: #13980

Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0088: TextChanged not triggered for :norm! commands v9.1.0088
Christian Brabandt [Fri, 9 Feb 2024 18:34:36 +0000 (19:34 +0100)] 
patch 9.1.0088: TextChanged not triggered for :norm! commands

Problem:  TextChanged not triggered for :norm! commands
          (machakann, after v9.0.2031)
Solution: Only reset curbuf->b_last_changedtick if TextChangedI
          was triggered in insert mode (and not blocked)

Note: for unknown reasons, the test fails on Windows (but seems to work
fine when running interactively)

fixes: #13967
closes: #13984

Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0087: Restoring lastused_tabpage too early in do_arg_all() v9.1.0087
glepnir [Fri, 9 Feb 2024 18:30:26 +0000 (19:30 +0100)] 
patch 9.1.0087: Restoring lastused_tabpage too early in do_arg_all()

Problem:  Restore lastused_tabpage too early in do_arg_all() function it
          will change later in the function.
Solution: Restore lastused_tabpage a bit later, when being done with
          tabpages (glepnir)

closes: #13992

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0086: Problem when scrolling using slow touchpads scroll event v9.1.0086
lilydjwg [Fri, 9 Feb 2024 18:24:23 +0000 (19:24 +0100)] 
patch 9.1.0086: Problem when scrolling using slow touchpads scroll event

Problem:  Problem when scrolling using slow touchpads scroll event
Solution: better ways to determine if a smooth scroll has ended (when
          available) (lilydjwg)

related: #13997

Signed-off-by: lilydjwg <lilydjwg@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0085: X11 scroll size changes after accessing clipboard v9.1.0085
lilydjwg [Fri, 9 Feb 2024 18:13:12 +0000 (19:13 +0100)] 
patch 9.1.0085: X11 scroll size changes after accessing clipboard

Problem:  X11 scroll size changes after accessing clipboard
          (Ernie Rael)
Solution: use GDK_SCROLL_MASK for X11 and GDK_SMOOTH_SCROLL_MASK for
          Wayland (lilydjwg)

because GDK_SCROLL_SMOOTH events don't work well for x11 (see comments).

fixes #13994
closes: #13997

Signed-off-by: lilydjwg <lilydjwg@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoCI: Add Codecov token (#13999)
K.Takata [Fri, 9 Feb 2024 17:18:11 +0000 (02:18 +0900)] 
CI: Add Codecov token (#13999)

codecov-action@4 requires a token.
Add it to the repository secrets.

See: https://github.com/vim/vim/pull/13978#issuecomment-1935336624

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0084: Visual hl wrong when it ends before multibyte 'showbreak' v9.1.0084
zeertzjq [Fri, 9 Feb 2024 17:14:12 +0000 (18:14 +0100)] 
patch 9.1.0084: Visual hl wrong when it ends before multibyte 'showbreak'

Problem:  Visual hl wrong when it ends before multibyte 'showbreak'.
          (lacygoil)
Solution: Use vcol_sbr instead of adding n_extra.
          (zeertzjq)

fixes: #11272
closes: #13996

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0083: Redrawing can be improved when deleting lines with 'number' v9.1.0083
zeertzjq [Thu, 8 Feb 2024 10:37:40 +0000 (11:37 +0100)] 
patch 9.1.0083: Redrawing can be improved when deleting lines with 'number'

Problem:  Redrawing can be improved when inserting/deleting lines with 'number'.
Solution: Only redraw the number column of lines below changed lines.
          Add a test as this wasn't previously tested.
          (zeertzjq)

closes: #13985

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0082: Redrawing can be improved when deleting lines with 'cursorline' v9.1.0082
zeertzjq [Thu, 8 Feb 2024 10:34:55 +0000 (11:34 +0100)] 
patch 9.1.0082: Redrawing can be improved when deleting lines with 'cursorline'

Problem:  Redrawing can be improved when deleting lines with 'cursorline'.
Solution: Use smarter invalidation and adjustment.  Remove unnecessary
          UPD_VALID as it is already set at the top of the loop.  Make
          the test for #4862 fail without the fix.
          (zeertzjq)

closes: #13986

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(doc): further improve docs about List/Blob += operator
zeertzjq [Thu, 8 Feb 2024 10:21:44 +0000 (11:21 +0100)] 
runtime(doc): further improve docs about List/Blob += operator

closes: #13990

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0081: X11 mouse-scrolling stutters v9.1.0081
lilydjwg [Thu, 8 Feb 2024 10:04:21 +0000 (11:04 +0100)] 
patch 9.1.0081: X11 mouse-scrolling stutters

Problem:  X11 mouse-scrolling stutters
          (Ron Aaron, after 9.1.0064)
Solution: Handle GDK_SCROLL_SMOOTH fractional distance events
          (lilydjwg)

I don't know why, but with GDK_SMOOTH_SCROLL_MASK we get wheel events as
GDK_SCROLL_SMOOTH. What's more, one wheel scroll is counted as 1.5
distance in Wayland but 1.0 in X11.

I failed to find any docs on gtk.org about this.

fixes: #13987
closes: #13991

Signed-off-by: lilydjwg <lilydjwg@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(doc): Clarify list-concatenation a bit more
qeatzy [Wed, 7 Feb 2024 16:52:25 +0000 (17:52 +0100)] 
runtime(doc): Clarify list-concatenation a bit more

Make doc list-concatenation more clear as for += and extend().

1. describe `+=` for list-concatenation more accurately
2. add `extend()` example for list-concatenation
3. Fix CI errors for missing helptags reference |+=|

closes: #13983

Signed-off-by: qeatzy <qeatzy@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0080: unexpected error for modifying final list using += v9.1.0080
Yegappan Lakshmanan [Tue, 6 Feb 2024 10:03:36 +0000 (11:03 +0100)] 
patch 9.1.0080: unexpected error for modifying final list using +=

Problem:  unexpected error for modifying final list using += operator
          (Ernie Rael)
Solution: Allow List value modification of a final variable using +=
          operator
          (Yegappan Lakshmanan)

fixes: #13745
fixes: #13959
closes: #13962

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0079: LineNrAbove/Below highlighting wrong on wrapped lines v9.1.0079
zeertzjq [Tue, 6 Feb 2024 09:59:03 +0000 (10:59 +0100)] 
patch 9.1.0079: LineNrAbove/Below highlighting wrong on wrapped lines

Problem:  LineNrAbove and LineNrBelow background wrong on wrapped lines.
Solution: Update number column also for wrapped part of a line.
          (zeertzjq)

closes: #13974

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(dosbatch): improve '::' comment highlighting
Christian Brabandt [Tue, 6 Feb 2024 09:56:26 +0000 (10:56 +0100)] 
runtime(dosbatch): improve '::' comment highlighting

Added a syntax region for command blocks so that the highlighting of
`::` comments in them can be controlled.  The `dosbatch_colons_comment`
variable now controls if all `::` comments in a code block are
highlighted as comments or errors.  A `::` comment at the end of a
command block is always highlighted as an error.

This re-enables the highlighting of `::` comments in `.bat` files as
requested in #13666, while allowing control of highlighting them in
command blocks requested in #11778 and first attempted in #11980.

related: #11980
fixes: #13666

Co-authored-by: Mike Williams <mikew@globalgraphics.com>
Signed-off-by: Mike Williams <mikew@globalgraphics.com>
Signed-off-by: mevanlc <mevanlc@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0078: GTK3: using wrong style for pre-edit area v9.1.0078
lilydjwg [Tue, 6 Feb 2024 09:49:14 +0000 (10:49 +0100)] 
patch 9.1.0078: GTK3: using wrong style for pre-edit area

Problem:  GTK3: using wrong style for pre-edit area
Solution: remove the widget name, adjust css
          (lilydjwg)

closes: #13972

Signed-off-by: lilydjwg <lilydjwg@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoCI: skip apt upgrade on github runners (#13975)
Philip H [Tue, 6 Feb 2024 09:47:49 +0000 (10:47 +0100)] 
CI: skip apt upgrade on github runners (#13975)

Revert: https://github.com/vim/vim/pull/13680
Fixed in: https://github.com/actions/runner-images/issues/9016

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoCI: Bump codecov/codecov-action from 3 to 4 (#13978)
dependabot[bot] [Tue, 6 Feb 2024 09:46:10 +0000 (10:46 +0100)] 
CI: Bump codecov/codecov-action from 3 to 4 (#13978)

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0077: Unnecessary call to redraw_for_cursorline() in nv_mousescroll() v9.1.0077
zeertzjq [Tue, 6 Feb 2024 09:43:36 +0000 (10:43 +0100)] 
patch 9.1.0077: Unnecessary call to redraw_for_cursorline() in nv_mousescroll()

Problem:  The call to redraw_for_cursorline() in nv_mousescroll() is
          unnecessary because redraw_for_cursorline() only sets redraw
          type to UPD_VALID, and all code paths in do_mousescroll()
          already set redraw type to at least UPD_VALID.
Solution: Remove call to redraw_for_cursorline() in nv_mousescroll().
          (zeertzjq)

closes: #13979

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(colors): color names in the v:colornames dict should be lower cased
Christian Brabandt [Mon, 5 Feb 2024 09:30:01 +0000 (10:30 +0100)] 
runtime(colors): color names in the v:colornames dict should be lower cased

Vim will lookup color names from the v:colornames dictionary by its
lower case color name. So when sourcing the v:colornames dictionary,
make sure to convert upper case color names to lower case.

Also, while at it, mention in the documentation, that the dictionary
should contain lower case names only.

fixes: #13976
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0076: luau config file not detected v9.1.0076
lopy [Sun, 4 Feb 2024 09:27:33 +0000 (10:27 +0100)] 
patch 9.1.0076: luau config file not detected

Problem:  luau config file not detected
          (lopy)
Solution: Detect it as jsonc
          (lopy)

fixes: #13960
closes: #13970

Signed-off-by: lopy <70210066+lopi-py@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(vim): Update syntax file (#13969)
dkearns [Sat, 3 Feb 2024 17:18:31 +0000 (04:18 +1100)] 
runtime(vim): Update syntax file (#13969)

Improve string interpolation highlighting.

Use the vimSep group to highlight interpolation braces as vimOperParen
has no highlighting of its own and employs vimSep via matchgroup.

Add vimNumber to the interpolation group's contained list.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: thinca <thinca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0075: insert completion not correct when adding new leader v9.1.0075
glepnir [Sat, 3 Feb 2024 17:11:13 +0000 (18:11 +0100)] 
patch 9.1.0075: insert completion not correct when adding new leader

Problem:  insert completion not correct when adding new leader
Solution: Reset compl_curr_match to compl_shown_match
          (glepnir)

closes: #13957

Co-authored-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0074: did_set_breakat() should be in optionstr.c v9.1.0074
zeertzjq [Sat, 3 Feb 2024 17:08:09 +0000 (18:08 +0100)] 
patch 9.1.0074: did_set_breakat() should be in optionstr.c

Problem:  did_set_breakat() should be in optionstr.c as 'breakat' is a
          string option.
Solution: Move did_set_breakat() to optionstr.c.
          (zeertzjq)

closes: #13958

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0073: Looping over modifier_keys_table unnecessarily v9.1.0073
zeertzjq [Sat, 3 Feb 2024 17:04:05 +0000 (18:04 +0100)] 
patch 9.1.0073: Looping over modifier_keys_table unnecessarily

Problem:  Looping over modifier_keys_table[] unnecessarily with only
          MOD_MASK_ALT or MOD_MASK_CMD, as modifier_keys_table[] only
          contains MOD_MASK_SHIFT and MOD_MASK_CTRL, and the loop won't
          do anything.
Solution: Remove MOD_MASK_ALT and MOD_MASK_CMD from the condition.
          (zeertzjq)

closes: #13963

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0072: Not able to build without FEAT_DIFF v9.1.0072
Yegappan Lakshmanan [Sat, 3 Feb 2024 16:41:54 +0000 (17:41 +0100)] 
patch 9.1.0072: Not able to build without FEAT_DIFF

Problem:  Not able to build without FEAT_DIFF
          (John Marriott, after 9.1.0071)
Solution: Adjust #ifdefs
          (Yegappan Lakshmanan)

closes: #13964

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agotranslation(ca): Fixe typos in Catalan translation (#13968)
Jordi Mas [Sat, 3 Feb 2024 16:40:03 +0000 (17:40 +0100)] 
translation(ca): Fixe typos in Catalan translation (#13968)

Signed-off-by: Jordi Mas <jmas@softcatala.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0071: Need a diff() Vim script function v9.1.0071
Yegappan Lakshmanan [Thu, 1 Feb 2024 21:05:27 +0000 (22:05 +0100)] 
patch 9.1.0071: Need a diff() Vim script function

Problem:  Need a diff() Vim script function
Solution: Add the diff() Vim script function using the
          xdiff internal diff library, add support for
          "unified" and "indices" mode.
          (Yegappan Lakshmanan)

fixes: #4241
closes: #12321

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agotranslation(ru): Updated Russian translation of messages (#13947)
Restorer [Thu, 1 Feb 2024 20:45:32 +0000 (23:45 +0300)] 
translation(ru): Updated Russian translation of messages (#13947)

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(vim): Update syntax file (#13948)
dkearns [Thu, 1 Feb 2024 20:44:26 +0000 (07:44 +1100)] 
runtime(vim): Update syntax file (#13948)

Improve string escape sequence and special key matching.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(fortran): update syntax (#13953)
Ajit-Thakkar [Thu, 1 Feb 2024 20:43:01 +0000 (16:43 -0400)] 
runtime(fortran): update syntax (#13953)

* runtime (Fortran) update syntax
* runtime (Fortran) small fix

Signed-off-by: Ajit-Thakkar <142174202+Ajit-Thakkar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0070: CI: testsuite not run on M1 Mac v9.1.0070
rhysd [Thu, 1 Feb 2024 20:22:14 +0000 (21:22 +0100)] 
patch 9.1.0070: CI: testsuite not run on M1 Mac

Problem:  CI: testsuite not run on M1 Mac
Solution: Make it run on gh runners for M1, disable failing tests for
          now, until we figure the problem with the failings tests out
          (rhysd)

closes: #13943

Signed-off-by: rhysd <lin90162@yahoo.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0069: ScreenLines may not be correctly initialized, causing hang v9.1.0069
Olaf Seibert [Thu, 1 Feb 2024 20:11:16 +0000 (21:11 +0100)] 
patch 9.1.0069: ScreenLines may not be correctly initialized, causing hang

Problem:  ScreenLines may not be correctly initialized, causing hang
          (Olaf Seibert, after 9.0.0220)
Solution: always initialize ScreneLines when allocating a screen
          (Olaf Seibert)

ScreenLines and related structures could be left uninitialized
causing a screen update to run into an infinite loop when using latin1
encoding.

Partly caused because by patch 9.0.0220, which makes mb_ptr2len return
zero for NUL

related: #12671
closes: #13946

Signed-off-by: Olaf Seibert <rhialto@falu.nl>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0068: Visual highlighting can still be improved v9.1.0068
Maxim Kim [Thu, 1 Feb 2024 20:07:51 +0000 (21:07 +0100)] 
patch 9.1.0068: Visual highlighting can still be improved

Problem:  Visual highlighting can still be improved
Solution: Update Visual highlighting for 8 color terminals,
          use uniform grey highlighting for dark and light bg
          (Maxim Kim)

Update terminal Visual

1. Use `ctermbg=Grey ctermfg=Black` for both dark and light

This uniforms Visual highlighting between default dark and light colors
And should work for vim usually detecting light background for terminals
with black/dark background colors.

Previously used `ctermfg=White` leaks `cterm=bold` if available colors
are less than 16.

2. Use `term=reverse cterm=reverse ctermbg=NONE ctermfg=NONE`
   for terminals reporting less than 8 colors available

If the terminal has less than 8 colors, grey just doesn't work right

closes: #13940

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0067: gcc still complains about use of uninitialized var v9.1.0067
Christian Brabandt [Wed, 31 Jan 2024 21:10:50 +0000 (22:10 +0100)] 
patch 9.1.0067: gcc still complains about use of uninitialized var

Problem:  gcc still complains about use of uninitialized var
          ((Tony Mechelynck, after 9.1.0064/9.1.0066))
Solution: This time init the correct variable

Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(racket): add missing space to b:undo_indent var (#13945)
D. Ben Knoble [Wed, 31 Jan 2024 19:53:55 +0000 (14:53 -0500)] 
runtime(racket): add missing space to b:undo_indent var (#13945)

This copies commit 2a4862a (fixup! indent: only reset some options when
has vim9, 2024-01-31) from https://github.com/benknoble/vim-racket and
fixes 26b0176a9 (runtime(racket): undo some indent options only when
vim9script is available (#13935), 2024-01-30).

Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(Filelist): include README_vimlogo.txt (#13944)
Philip H [Wed, 31 Jan 2024 19:51:48 +0000 (20:51 +0100)] 
runtime(Filelist): include README_vimlogo.txt (#13944)

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0066: gcc complains about use of uninitialized var v9.1.0066
Christian Brabandt [Wed, 31 Jan 2024 19:29:07 +0000 (20:29 +0100)] 
patch 9.1.0066: gcc complains about use of uninitialized var

Problem:  gcc complains about use of uninitialized var
          (Tony Mechelynck, after 9.1.0064)
Solution: initialize button to silence gcc

Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(vimlogo): Include and modernize vimlogo.svg
Shay Hill [Wed, 31 Jan 2024 19:11:38 +0000 (20:11 +0100)] 
runtime(vimlogo): Include and modernize vimlogo.svg

fix degenerate splines in vimlogo.svg

closes: #13941

Signed-off-by: Shay Hill <shay_public@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(netrw): fixing remote file removal via ssh (#13942)
MiguelBarro [Wed, 31 Jan 2024 19:07:17 +0000 (20:07 +0100)] 
runtime(netrw): fixing remote file removal via ssh (#13942)

Make pattern, which retrieves the path component from e.g.
`scp://user@host//opt/program/file.ext` non-greedy.

Signed-off-by: GuyBrush <miguel.barro@live.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoCI: get rid of snap and speed up CI (#13938)
Philip H [Wed, 31 Jan 2024 19:04:22 +0000 (20:04 +0100)] 
CI: get rid of snap and speed up CI (#13938)

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoCI: update clang to v18 (#13937)
Philip H [Wed, 31 Jan 2024 19:02:10 +0000 (20:02 +0100)] 
CI: update clang to v18 (#13937)

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(doc): correct Vim patch for Wayland support
Christian Brabandt [Tue, 30 Jan 2024 22:37:41 +0000 (23:37 +0100)] 
runtime(doc): correct Vim patch for Wayland support

Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(racket): undo some indent options only when vim9script is available (#13935)
D. Ben Knoble [Tue, 30 Jan 2024 22:32:59 +0000 (17:32 -0500)] 
runtime(racket): undo some indent options only when vim9script is available (#13935)

This copies commit 64edf95 (indent: only reset some options when has
vim9, 2024-01-30) from https://github.com/benknoble/vim-racket.

Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(doc): Update help for Wayland support
Christian Brabandt [Tue, 30 Jan 2024 19:41:07 +0000 (20:41 +0100)] 
runtime(doc): Update help for Wayland support

Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0065: Segfault with CompleteChanged autocommand v9.1.0065
Christian Brabandt [Mon, 29 Jan 2024 20:46:58 +0000 (21:46 +0100)] 
patch 9.1.0065: Segfault with CompleteChanged autocommand

Problem:  Segfault with CompleteChanged autocommand
          (markonm )
Solution: Test match->cp_prev for being NULL before accessing it

closes: #13929

Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0064: No Wayland support v9.1.0064
lilydjwg [Mon, 29 Jan 2024 19:54:28 +0000 (20:54 +0100)] 
patch 9.1.0064: No Wayland support

Problem:  No Wayland support
Solution: Add Wayland UI support
          (lilydjwg)

closes: #9639

Signed-off-by: lilydjwg <lilydjwg@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0063: GTK code can be improved v9.1.0063
lilydjwg [Mon, 29 Jan 2024 19:14:01 +0000 (20:14 +0100)] 
patch 9.1.0063: GTK code can be improved

Problem:  GTK code can be improved
Solution: Improve GTK code for initial Wayland support
          (lilydjwg)

related: #9639

Signed-off-by: lilydjwg <lilydjwg@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0062: Internal error when :luado/perldo/pydo etc delete lines v9.1.0062
zeertzjq [Mon, 29 Jan 2024 18:32:39 +0000 (19:32 +0100)] 
patch 9.1.0062: Internal error when :luado/perldo/pydo etc delete lines

Problem:  Internal error when :luado/perldo/pydo etc delete lines
Solution: Test that the line is still valid line number
          (zeertzjq)

closes: #13931

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0061: UX of visual highlighting can be improved v9.1.0061
Christian Brabandt [Sun, 28 Jan 2024 22:33:29 +0000 (23:33 +0100)] 
patch 9.1.0061: UX of visual highlighting can be improved

Problem:  UX of visual highlighting can be improved
Solution: Improve readibility of visual highlighting,
          by setting better foreground and background
          colors

The default visual highlighting currently is nice in that it overlays
the actual syntax highlighting by using a separate distinct background
color.

However, this can cause hard to read text, because the contrast
between the actual syntax element and the background color is way too
low. That is an issue, that has been bothering colorschemes authors for
quite some time so much, that they are defining the Visual highlighting
group to use a separate foreground and background color, so that the
syntax highlighting vanishes, but the text remains readable (ref:
vim/colorschemes#250)

So this is an attempt to perform the same fix for the default Visual
highlighting and just use a default foreground and background color
instead of using reverse.

I also removed the hard-coded changes to the Visual highlighting in
init_highlight. It's not quite clear to me, why those were there and not
added directly to the highlighting_init_<dark|light> struct.

closes: #13663
related: vim/colorschemes#250

Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(netrw): Use :exec norm! <leftmouse> before :call mapping in netrw (#12180)
user202729 [Sun, 28 Jan 2024 22:29:21 +0000 (05:29 +0700)] 
runtime(netrw): Use :exec norm! <leftmouse> before :call mapping in netrw (#12180)

fixes: #12143

Signed-off-by: user202729 <25191436+user202729@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0060: Recorded register cannot be translated using keytrans() v9.1.0060
zeertzjq [Sun, 28 Jan 2024 18:03:00 +0000 (19:03 +0100)] 
patch 9.1.0060: Recorded register cannot be translated using keytrans()

Problem:  Recorded register cannot be translated using keytrans() when
          it involves character search (iddqd505)
Solution: Record a K_IGNORE instead of a K_NOP (zeertzjq)

related: #13916
closes: #13925

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(vim): Highlight string interpolation
thinca [Sun, 28 Jan 2024 17:57:23 +0000 (18:57 +0100)] 
runtime(vim): Highlight string interpolation

closes: #13923

Signed-off-by: thinca <thinca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(vim): Update syntax and ftplugin files (#13924)
dkearns [Sun, 28 Jan 2024 17:54:08 +0000 (04:54 +1100)] 
runtime(vim): Update syntax and ftplugin files (#13924)

Improve matching of line-continuations and interspersed comments.

These are now also matched in multiline syntax command patterns,
dictionary literals, and parenthesised expressions and argument lists.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(ant): Update syntax file (#13926)
dkearns [Sat, 27 Jan 2024 17:20:46 +0000 (04:20 +1100)] 
runtime(ant): Update syntax file (#13926)

Remove invalid display option from syn-keyword commands.

Take over maintenance of this file.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(hurl): add hurl filetype plugin(#13921)
Melker Ulander [Sat, 27 Jan 2024 10:26:14 +0000 (11:26 +0100)] 
runtime(hurl): add hurl filetype plugin(#13921)

Signed-off-by: Melker Ulander <melker.ulander@pm.me>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(vim): Update syntax file (#13919)
dkearns [Sat, 27 Jan 2024 10:24:45 +0000 (21:24 +1100)] 
runtime(vim): Update syntax file (#13919)

Add foreach() function.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(doc): style fixes in vim9.txt (#13918)
h_east [Sat, 27 Jan 2024 10:22:28 +0000 (19:22 +0900)] 
runtime(doc): style fixes in vim9.txt (#13918)

Remove backticks and a few other style fixes

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0059: No event triggered before creating a window v9.1.0059
Sergey Vlasov [Thu, 25 Jan 2024 22:07:00 +0000 (23:07 +0100)] 
patch 9.1.0059: No event triggered before creating a window

Problem:  No event is triggered before creating a window.
          (Sergey Vlasov)
Solution: Add the WinNewPre event (Sergey Vlasov)

fixes: #10635
closes: #12761

Signed-off-by: Sergey Vlasov <sergey@vlasov.me>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0058: Cannot map Super Keys in GTK UI v9.1.0058
Casey Tucker [Thu, 25 Jan 2024 21:44:00 +0000 (22:44 +0100)] 
patch 9.1.0058: Cannot map Super Keys in GTK UI

Problem:  Cannot map Super Keys in GTK UI
          (Casey Tucker)
Solution: Enable Super Key mappings in GTK using <D-Key>
          (Casey Tucker)

As a developer who works in both Mac and Linux using the same keyboard,
it can be frustrating having to remember different key combinations or
having to rely on system utilities to remap keys.

This change allows `<D-z>` `<D-x>` `<D-c>` `<D-v>` etc. to be recognized
by the `map` commands, along with the `<D-S-...>` shifted variants.

```vimrc
if has('gui_gtk')
nnoremap  <D-z>    u
nnoremap  <D-S-Z>  <C-r>
vnoremap  <D-x>    "+d
vnoremap  <D-c>    "+y
cnoremap  <D-v>    <C-R>+
inoremap  <D-v>    <C-o>"+gP
nnoremap  <D-v>    "+P
vnoremap  <D-v>    "-d"+P
nnoremap  <D-s>    :w<CR>
inoremap  <D-s>    <C-o>:w<CR>
nnoremap  <D-w>    :q<CR>
nnoremap  <D-q>    :qa<CR>
nnoremap  <D-t>    :tabe<CR>
nnoremap  <D-S-T>  :vs#<CR><C-w>T
nnoremap  <D-a>    ggVG
vnoremap  <D-a>    <ESC>ggVG
inoremap  <D-a>    <ESC>ggVG
nnoremap  <D-f>    /
nnoremap  <D-g>    n
nnoremap  <D-S-G>  N
vnoremap  <D-x>    "+x
endif
```

closes: #12698

Signed-off-by: Casey Tucker <dctucker@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0057: MS-Windows: Key event test still fails v9.1.0057
Christian Brabandt [Thu, 25 Jan 2024 21:28:37 +0000 (22:28 +0100)] 
patch 9.1.0057: MS-Windows: Key event test still fails

Problem:  MS-Windows: Key event test still fails
Solution: Skip testing CTRL-C, since it causes an Interrupt
          which causes a test failure (after 9.1.0053)

Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0056: wrong number of trailing spaces inserted after blockwise put v9.1.0056
VanaIgr [Thu, 25 Jan 2024 20:50:41 +0000 (21:50 +0100)] 
patch 9.1.0056: wrong number of trailing spaces inserted after blockwise put

Problem:  Incorrect number of trailing spaces inserted for multibyte
  characters when pasting a blockwise register in blockwise visual
          mode (VanaIgr)
Solution: Skip over trailing UTF-8 bytes when computing the number of trailing
          spaces (VanaIgr)

When pasting in blockwise visual mode, and the register type is <CTRL-V>, Vim
aligns the text after the replaced area by inserting spaces after pasted
lines that are shorter than the longest line. When a shorter line contains
multibyte characters, each trailing UTF-8 byte's width is counted in addition
to the width of the character itself. Each trailing byte counts as being 4
cells wide (since it would be displayed as <xx>).

closes: #13909

Signed-off-by: VanaIgr <vanaigranov@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0055: formatting long lines is slow v9.1.0055
kawaii-Code [Thu, 25 Jan 2024 20:40:05 +0000 (21:40 +0100)] 
patch 9.1.0055: formatting long lines is slow

Problem:  formatting long lines is slow
          (kawaii-Code)
Solution: optimize gq (internal_format) for long
          lines (kawaii-Code)

Implemented two workarounds that significantly reduce
the amount of pointless calls. Ideally the algorithm
would be rewritten not to be n^2, but it's too complicated
with too many corner cases.

closes: #13914

Signed-off-by: kawaii-Code <nia.personal.0@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0054: 'linebreak' may still apply to leading whitespace v9.1.0054
zeertzjq [Thu, 25 Jan 2024 20:27:13 +0000 (21:27 +0100)] 
patch 9.1.0054: 'linebreak' may still apply to leading whitespace

Problem:  'linebreak' may still apply to leading whitespace
          (VanaIgr)
Solution: Compare pointers instead of virtual columns.
          (zeertzjq)

related: neovim/neovim#27180
closes: #13915

Co-authored-by: VanaIgr <vanaigranov@gmail.com>
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0053: MS-Windows: Key event test still fails v9.1.0053
Christian Brabandt [Thu, 25 Jan 2024 20:23:22 +0000 (21:23 +0100)] 
patch 9.1.0053: MS-Windows: Key event test still fails

Problem:  MS-Windows: Key event test still fails
Solution: Catch more interrupts
          (after 9.1.0051)

Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0052: Patch 9.1.0041 causes regressions for users v9.1.0052
Christian Brabandt [Thu, 25 Jan 2024 19:50:49 +0000 (20:50 +0100)] 
patch 9.1.0052: Patch 9.1.0041 causes regressions for users

Problem:  Patch 9.1.0041 causes regressions for users
          (Gleb Fotengauer-Malinovskiy)
Solution: Revert 9.1.0041 and restore old behaviour

Revert "patch 9.1.0041: xxd -i may generate incorrect C statements"

This reverts commit 7062be13129985fe297b9a8e59c57b8f0db61b8f.

Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0051: MS-Windows: Key event test fail v9.1.0051
Christian Brabandt [Thu, 25 Jan 2024 19:44:49 +0000 (20:44 +0100)] 
patch 9.1.0051: MS-Windows: Key event test fail

Problem:  MS-Windows: Key event test fail
          (after 9.1.0050)
Solution: Catch Interrupt and return Ctrl-C

Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(mail): fix #13913 (#13917)
gi1242 [Thu, 25 Jan 2024 18:52:47 +0000 (13:52 -0500)] 
runtime(mail): fix #13913 (#13917)

switch to the DFA engine for the emoji collaction range

Co-authored-by: GI <gi1242+vim@gmail.com>
Signed-off-by: GI <gi1242@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(netrw): Don't change global options (#13910)
K.Takata [Wed, 24 Jan 2024 19:10:19 +0000 (04:10 +0900)] 
runtime(netrw): Don't change global options (#13910)

Originally reported at: https://github.com/vim-jp/issues/issues/1428
'isk' was unintentionally changed by netrw, regression
introduced in Commit: 71badf9547e8f89571b9a095183671cbb333d528

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(fortran): update syntax and documentation (#13912)
Ajit-Thakkar [Wed, 24 Jan 2024 19:08:34 +0000 (15:08 -0400)] 
runtime(fortran): update syntax and documentation (#13912)

* runtime (doc): update Fortran section
* runtime(syntax): Complete support for Fortran 2023.
   Minor improvements.

Signed-off-by: Ajit-Thakkar <142174202+Ajit-Thakkar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0050: Win32 Keyboard handling is sub-optimal v9.1.0050
Anton Sharonov [Tue, 23 Jan 2024 22:19:02 +0000 (23:19 +0100)] 
patch 9.1.0050: Win32 Keyboard handling is sub-optimal

Problem:  Win32 Keyboard handling is sub-optimal and has
          many issues with international keyboards
          (risa2000) (after v8.2.4807)
Solution: soft-rollback the change, allow the user to select
          a suitable key-translation strategy
          (Anton Sharonov)

Read about the details in the help:
    :h w32-experimental-keycode-trans-strategy

fixes: #10615
fixes: #12595
closes: #12752

Signed-off-by: Anton Sharonov <anton.sharonov@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0049: Make "[Command Line]" a special buffer name v9.1.0049
Sean Dewar [Wed, 16 Aug 2023 16:15:05 +0000 (17:15 +0100)] 
patch 9.1.0049: Make "[Command Line]" a special buffer name

Problem:  E95 is possible if a buffer called "[Command Line]" already
          exists when opening the cmdwin. This can also happen if the
          cmdwin's buffer could not be deleted when closing.

Solution: Un-name the cmdwin buffer, and give it a special name instead,
          similar to what's done for quickfix buffers and for unnamed
          prompt and scratch buffers. As a result, BufFilePre/Post are
          no longer fired when opening the cmdwin. Add a "command" key
          to the dictionary returned by getbufinfo() to differentiate
          the cmdwin buffer instead. (Sean Dewar)

NOTE: This is technically a breaking change... maybe this needs a different
solution? (Or maybe this issue can be ignored...)

A GitHub search reveals some plugins expect the old behaviour. However, many of
those plugins also do not seem to account for the string being translated, so
they are subtly broken anyway (not withstanding the fact that you can call any
old buffer "[Command Line]" too...)

closes: #12819

Signed-off-by: Sean Dewar <seandewar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0048: Abort opening cmdwin if autocmds screw things up v9.1.0048
Sean Dewar [Wed, 16 Aug 2023 15:17:31 +0000 (16:17 +0100)] 
patch 9.1.0048: Abort opening cmdwin if autocmds screw things up

Problem:  Autocmds triggered from opening the cmdwin (in win_split and
          do_ecmd) can cause issues such as E199, as the current checks
          are insufficient.

Solution: Commands executed from the cmdwin apply to the old curwin/buf,
          so they should be kept in a "suspended" state; abort if
          they've changed. Also abort if cmdwin/buf was tampered with,
          and check that curwin is correct. Try to clean up the cmdwin
          buffer (only if hidden and non-current to simplify things; the
          same approach is used when closing cmdwin normally), and add a
          beep. (Sean Dewar)

It'd be nice to also check that curwin was *really* created by win_split, as
autocommands can change curwin before it returns (so it can't be assumed to be
that of the split); for now, this means that the cmdwin may not be the botwin in
that case, which is probably OK.

closes: #12819

Signed-off-by: Sean Dewar <seandewar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0047: issues with temp curwin/buf while cmdwin is open v9.1.0047
Sean Dewar [Wed, 16 Aug 2023 13:17:36 +0000 (14:17 +0100)] 
patch 9.1.0047: issues with temp curwin/buf while cmdwin is open

Problem:  Things that temporarily change/restore curwin/buf (e.g:
          win_execute, some autocmds) may break assumptions that
          curwin/buf is the cmdwin when "cmdwin_type != 0", causing
          issues.

Solution: Expose the cmdwin's real win/buf and check that instead. Also
          try to ensure these variables are NULL if "cmdwin_type == 0",
          allowing them to be used directly in most cases without
          checking cmdwin_type. (Sean Dewar)

Alternatively, we could ban win_execute in the cmdwin and audit all places that
temporarily change/restore curwin/buf, but I didn't notice any problems arising
from allowing this (standard cmdwin restrictions still apply, so things that may
actually break the cmdwin are still forbidden).

closes: #12819

Signed-off-by: Sean Dewar <seandewar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoCI: regenerate helptags to fix CI job
Christian Brabandt [Tue, 23 Jan 2024 21:29:47 +0000 (22:29 +0100)] 
CI: regenerate helptags to fix CI job

Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(c): Highlight user defined functions
Luca Saccarola [Sun, 24 Dec 2023 17:57:02 +0000 (18:57 +0100)] 
runtime(c): Highlight user defined functions

closes: #13763

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0046: :drop does not re-use empty buffer v9.1.0046
Rocco Mao [Tue, 23 Jan 2024 20:27:19 +0000 (21:27 +0100)] 
patch 9.1.0046: :drop does not re-use empty buffer

Problem:  :drop does not re-use empty buffer
          (Rocco Mao)
Solution: Make :drop re-use an empty buffer
          (Rocco Mao)

fixes: #13851
closes: #13881

Signed-off-by: Rocco Mao <dapeng.mao@qq.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0045: --remote-* does not ignore `wilidignore` v9.1.0045
Christian Brabandt [Tue, 23 Jan 2024 20:13:58 +0000 (21:13 +0100)] 
patch 9.1.0045: --remote-* does not ignore `wilidignore`

Problem:  --remote-silent applies the wildignore option
          to each argument, which may result in "E479: No match"
          (hebaronson)
Solution: temporarily reset 'wildignore' setting when building
          the :drop command

closes: #13835

Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(doc): change "VIsual mode" to "Visual mode" in :h SafeState (#13901)
zeertzjq [Tue, 23 Jan 2024 19:39:04 +0000 (03:39 +0800)] 
runtime(doc): change "VIsual mode" to "Visual mode" in :h SafeState (#13901)

"Visual mode" is used everywhere else in the help when not referring to
something in the source code.

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agotranslation(hu): use correct encoding in header of hu po file (#13902)
Zoltan Arpadffy [Tue, 23 Jan 2024 19:38:07 +0000 (20:38 +0100)] 
translation(hu): use correct encoding in header of hu po file (#13902)

closes: #13900

Signed-off-by: Zoltan Arpadffy <zoltan.arpadffy@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(vim): Update syntax file (#13906)
dkearns [Tue, 23 Jan 2024 19:34:28 +0000 (06:34 +1100)] 
runtime(vim): Update syntax file (#13906)

Highlight :2match and :3match and add these to :help ex-cmd-index.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(qml): Use shiftwidth() in indent plugin (#13908)
dkearns [Tue, 23 Jan 2024 19:33:32 +0000 (06:33 +1100)] 
runtime(qml): Use shiftwidth() in indent plugin (#13908)

Fixes #13907

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agotranslation(it): Update Italian translation
Antonio Giovanni Colombo [Tue, 23 Jan 2024 18:51:05 +0000 (19:51 +0100)] 
translation(it): Update Italian translation

Signed-off-by: Antonio Giovanni Colombo <azc100@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(mail): updated syntax file
GI [Tue, 23 Jan 2024 18:46:30 +0000 (19:46 +0100)] 
runtime(mail): updated syntax file

Signed-off-by: GI <gi1242@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(doc): improve doc makefiles, add clean rule (#13855)
Restorer [Mon, 22 Jan 2024 19:42:44 +0000 (22:42 +0300)] 
runtime(doc): improve doc makefiles, add clean rule (#13855)

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(lang): improve makefiles, add clean rule, fix typo (#13856)
Restorer [Mon, 22 Jan 2024 19:41:47 +0000 (22:41 +0300)] 
runtime(lang): improve makefiles, add clean rule, fix typo (#13856)

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0044: po Makefiles can be improved v9.1.0044
RestorerZ [Mon, 22 Jan 2024 19:28:12 +0000 (20:28 +0100)] 
patch 9.1.0044: po Makefiles can be improved

Problem:  po Makefiles can be improved
Solution: Improve the style of the Makefiles, update
          Makefile variables, update documentation
          (RestorerZ)

closes: #13858
closes: #13857

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(tutor): simplify tutor makefiles (#13859)
Restorer [Mon, 22 Jan 2024 19:25:43 +0000 (22:25 +0300)] 
runtime(tutor): simplify tutor makefiles (#13859)

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(sh): Add handling for ksh93 shared-state comsubs and mksh valsubs (#13884)
Johnothan King [Mon, 22 Jan 2024 19:19:54 +0000 (11:19 -0800)] 
runtime(sh): Add handling for ksh93 shared-state comsubs and mksh valsubs (#13884)

This commit adds support for ksh93 shared-state command
substitutions (syntax: ${ command; }) and mksh's value
substitutions (syntax: ${|command;}) in the sh syntax script.

Also add a syntax test for ksh subshares with dumps included
to make sure it doesn't regress.

fixes: #9514

Signed-off-by: Johnothan King <johnothanking@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agopatch 9.1.0043: ml_get: invalid lnum when :s replaces visual selection v9.1.0043
Christian Brabandt [Mon, 22 Jan 2024 19:12:34 +0000 (20:12 +0100)] 
patch 9.1.0043: ml_get: invalid lnum when :s replaces visual selection

Problem:  ml_get: invalid lnum when :s replaces visual selection
          (@ropery)
Solution: substitute may decrement the number of lines in a buffer,
          so validate, that the bottom lines of the visual selection
          stays within the max buffer line

fixes: #13890
closes: #13892

Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(chuck): include ChucK syntax file (#13895)
Andrea C from The App [Mon, 22 Jan 2024 19:10:42 +0000 (20:10 +0100)] 
runtime(chuck): include ChucK syntax file (#13895)

Co-authored-by: gacallea <gacallea@users.noreply.github.com>
Signed-off-by: gacallea <gacallea@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoruntime(go): update Go syntax file (#13896)
Billie Cleek [Mon, 22 Jan 2024 19:08:44 +0000 (11:08 -0800)] 
runtime(go): update Go syntax file (#13896)

Update the Go syntax file with some recent changes made to vim-go.

Signed-off-by: Billie Cleek <bhcleek@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 months agoCI: Bump actions/cache from 3 to 4 (#13897)
dependabot[bot] [Mon, 22 Jan 2024 19:06:01 +0000 (20:06 +0100)] 
CI: Bump actions/cache from 3 to 4 (#13897)

Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>