]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
10 hours agopatch 9.1.0393: 'viewdir' not respecting $XDG_CONFIG_HOME master v9.1.0393
Christian Brabandt [Sat, 4 May 2024 07:48:15 +0000 (09:48 +0200)] 
patch 9.1.0393: 'viewdir' not respecting $XDG_CONFIG_HOME

Problem:  'viewdir' not respecting $XDG_CONFIG_HOME
          (Danilo Rezende, after v9.1.327)
Solution: adjust 'viewdir' option when enabling XDG config mode

fixes: #14680
closes: #14708

Signed-off-by: Christian Brabandt <cb@256bit.org>
10 hours agopatch 9.1.0392: tests: Vim9 debug tests may be flaky v9.1.0392
Christian Brabandt [Sat, 4 May 2024 07:38:59 +0000 (09:38 +0200)] 
patch 9.1.0392: tests: Vim9 debug tests may be flaky

Problem:  tests: Vim9 debug tests may be flaky
          (Shane-XB-Qian)
Solution: Give a few more lines so that line-wrapping won't
          cause a hit-enter prompt

The two tests Run_Test_debug_running_out_of_lines() and
Run_Test_debug_with_lambda() test debugging of Vim script functions.

Depending from what file-path the tests are run, it may cause
line wrapping to occur on the following output:

Entering Debug mode.  Type "cont" to continue.
command line..script
/home/chrisbra/code/vim-upstream/src/testdir/XdebugFunc[15]..function
<SNR>9_Crash

and if the window is too small, this will cause a hit-enter prompt and so
the WaitForAssert() fails, causing failure of the following tests.

So increase the (internal) Vim window by a few more lines, so that even
if line-wrapping occurs, no hit-enter prompts happens and so the tests
can finish.

fixes: #14596
closes: #14691

Signed-off-by: Christian Brabandt <cb@256bit.org>
10 hours agoruntime(doc): correct getscriptinfo() example (#14718)
zeertzjq [Sat, 4 May 2024 07:35:30 +0000 (15:35 +0800)] 
runtime(doc): correct getscriptinfo() example (#14718)

When "sid" is specified, it returns a List with a single item.

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
25 hours agopatch 9.1.0391: Vim9: could improve testing v9.1.0391
Yegappan Lakshmanan [Fri, 3 May 2024 16:24:07 +0000 (18:24 +0200)] 
patch 9.1.0391: Vim9: could improve testing

Problem:  Vim9: could improve testing
          (Ernie Rael)
Solution: Support defcompile for test_override() to
          improve testing (Yegappan Lakshmanan)

fixes: #14553
closes: #14712

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
25 hours agoCI: test_sound fails on macos-12 (#14715)
ichizok [Fri, 3 May 2024 16:22:35 +0000 (01:22 +0900)] 
CI: test_sound fails on macos-12 (#14715)

Signed-off-by: ichizok <gclient.gaap@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
45 hours agotranslation(sr): update Serbian menu
Oleg Zadorozhnyi [Thu, 2 May 2024 20:16:10 +0000 (22:16 +0200)] 
translation(sr): update Serbian menu

closes: #14669
closes: #10722

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
45 hours agotranslation(sk): update Slovak menu
Oleg Zadorozhnyi [Thu, 2 May 2024 20:10:41 +0000 (22:10 +0200)] 
translation(sk): update Slovak menu

closes: #14671
closes: #10721

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
45 hours agotranslation(sl): update Slovenian menu
Oleg Zadorozhnyi [Thu, 2 May 2024 20:08:13 +0000 (22:08 +0200)] 
translation(sl): update Slovenian menu

closes: #14673

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
45 hours agotranslation(pt): update Portuguese menu
Oleg Zadorozhnyi [Thu, 2 May 2024 20:05:45 +0000 (22:05 +0200)] 
translation(pt): update Portuguese menu

closes: #10718
closes: #10717
closes: #14674

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
45 hours agotranslation(nl): update Dutch menu
Oleg Zadorozhnyi [Thu, 2 May 2024 20:02:30 +0000 (22:02 +0200)] 
translation(nl): update Dutch menu

closes: #14682

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
45 hours agotranslation(ko): update Korean menu
Oleg Zadorozhnyi [Thu, 2 May 2024 19:59:58 +0000 (21:59 +0200)] 
translation(ko): update Korean menu

closes: #14683

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
45 hours agotranslation(is): update Icelandic menu
Oleg Zadorozhnyi [Thu, 2 May 2024 19:56:45 +0000 (21:56 +0200)] 
translation(is): update Icelandic menu

closes: #14685

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
46 hours agotranslation(CZ): update Czech menu
Oleg Zadorozhnyi [Thu, 2 May 2024 19:44:56 +0000 (21:44 +0200)] 
translation(CZ): update Czech menu

closes: #14704

Signed-off-by: Christian Brabandt <cb@256bit.org>
46 hours agotranslation(af): update Afrikaans menu
Oleg Zadorozhnyi [Thu, 2 May 2024 19:37:21 +0000 (21:37 +0200)] 
translation(af): update Afrikaans menu

closes: #14706

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agotranslation(de): update German menu
Oleg Zadorozhnyi [Thu, 2 May 2024 11:14:13 +0000 (13:14 +0200)] 
translation(de): update German menu

closes: #14702

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agopatch 9.1.0390: filetype: inko files are not recognized v9.1.0390
Yorick Peterse [Thu, 2 May 2024 11:11:44 +0000 (13:11 +0200)] 
patch 9.1.0390: filetype: inko files are not recognized

Problem:  filetype: inko files are not recognized
Solution: Detect '*.inko' as ink filetype
          (Yorick Peterse)

See:
- https://github.com/inko-lang/inko.vim
- https://inko-lang.org/

closes: #14699

Signed-off-by: Yorick Peterse <git@yorickpeterse.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agopatch 9.1.0389: filetype: templ files are not recognized v9.1.0389
tris203 [Thu, 2 May 2024 11:08:25 +0000 (13:08 +0200)] 
patch 9.1.0389: filetype: templ files are not recognized

Problem:  filetype: templ files are not recognized
Solution: Detect '*.templ' files as filetype templ
          (Tristan Knight)

See:
- https://github.com/a-h/templ
- https://templ.guide/

closes: #14697

Signed-off-by: tris203 <admin@snappeh.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agopatch 9.1.0388: cursor() and getregion() don't handle v:maxcol well v9.1.0388
zeertzjq [Thu, 2 May 2024 11:06:24 +0000 (13:06 +0200)] 
patch 9.1.0388: cursor() and getregion() don't handle v:maxcol well

Problem:  cursor() and getregion() don't handle v:maxcol well.
Solution: Add special handling for v:maxcol like setpos() does.
          (zeertzjq)

closes: #14698

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agopatch 9.1.0387: Vim9: null value tests not sufficient v9.1.0387
Yegappan Lakshmanan [Thu, 2 May 2024 11:02:36 +0000 (13:02 +0200)] 
patch 9.1.0387: Vim9: null value tests not sufficient

Problem:  Vim9: null value tests not sufficient
Solution: Add a more comprehensive test for null values
          (Yegappan Lakshmanan)

closes: #14701

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agotranslation(ca): update Catalan menu
Oleg Zadorozhnyi [Thu, 2 May 2024 10:58:51 +0000 (12:58 +0200)] 
translation(ca): update Catalan menu

closes: #14705

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 days agopatch 9.1.0386: filetype: stylus files not recognized v9.1.0386
Philip H [Wed, 1 May 2024 16:42:11 +0000 (18:42 +0200)] 
patch 9.1.0386: filetype: stylus files not recognized

Problem:  filetype: stylus files not recognized
Solution: Detect '*.styl' and '*.stylus' as stylus filetype,
          include indent, filetype and syntax plugin
          (Philip H)

closes: #14656

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 days agotranslation(es): update spanish menu localization
Oleg Zadorozhnyi [Wed, 1 May 2024 16:08:34 +0000 (18:08 +0200)] 
translation(es): update spanish menu localization

closes: #14690

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 days agoruntime(doc): regenerate helptags (#14695)
Philip H [Wed, 1 May 2024 14:52:40 +0000 (16:52 +0200)] 
runtime(doc): regenerate helptags (#14695)

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 days agopatch 9.1.0385: Vim9: crash with null_class and null_object v9.1.0385
Yegappan Lakshmanan [Wed, 1 May 2024 09:44:17 +0000 (11:44 +0200)] 
patch 9.1.0385: Vim9: crash with null_class and null_object

Problem:  Vim9: crash with null_class and null_object
          (Aliaksei Budavei)
Solution: Handle null_class and null_object correctly
          (Yegappan Lakshmanan)

fixes: #14678
closes: #14681

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 days agoruntime(doc): Add tags about lazyloading of menu (#14688)
K.Takata [Wed, 1 May 2024 09:35:32 +0000 (18:35 +0900)] 
runtime(doc): Add tags about lazyloading of menu (#14688)

Close #14672

Also add the `g:` prefix.

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 days agopatch 9.1.0384: tests: vt420 terminfo entry may not be found v9.1.0384
Christian Brabandt [Tue, 30 Apr 2024 18:45:09 +0000 (20:45 +0200)] 
patch 9.1.0384: tests: vt420 terminfo entry may not be found

Problem:  tests: vt420 terminfo entry may not be found
          (Shane-XB-Qian)
Solution: check existence of terminfo vt420 and infocmp command

related: #14595
closes: #14677

Signed-off-by: Christian Brabandt <cb@256bit.org>
3 days agopatch 9.1.0383: filetype: .out files recognized as tex files v9.1.0383
shane.xb.qian [Tue, 30 Apr 2024 18:35:53 +0000 (20:35 +0200)] 
patch 9.1.0383: filetype: .out files recognized as tex files

Problem:  filetype: .out files recognized as tex files
Solution: Do not set an explicit filetype until it is clear what this
          should be (shane.xb.qian)

closes: #14670

Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 days agopatch 9.1.0382: filetype: Kbuild files are not recognized v9.1.0382
Bruno BELANYI [Tue, 30 Apr 2024 18:16:01 +0000 (20:16 +0200)] 
patch 9.1.0382: filetype: Kbuild files are not recognized

Problem:  Kbuild files are not recognized.
Solution: Detect Kbuild files as make files.
          (Bruno Belanyi)

closes: #14676

Signed-off-by: Bruno Belanyi <bruno@belanyi.fr>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 days agopatch 9.1.0381: cbuffer and similar commands don't accept a range v9.1.0381
Christian Brabandt [Mon, 29 Apr 2024 18:36:49 +0000 (20:36 +0200)] 
patch 9.1.0381: cbuffer and similar commands don't accept a range

Problem:  cbuffer and similar quickfix and locationlist commands don't
          accept a range, even so it is documented they should
          (ilan-schemoul, after 8.1.1241)
Solution: Define ex commands with ADDR_LINES instead of ADDR_OTHER

fixes: #14638
closes: #14657

Signed-off-by: Christian Brabandt <cb@256bit.org>
4 days agoruntime(java): Improve the recognition of the "indent" method declarations (#14659)
Aliaksei Budavei [Mon, 29 Apr 2024 18:24:35 +0000 (21:24 +0300)] 
runtime(java): Improve the recognition of the "indent" method declarations (#14659)

There is a flaw in the current implementation that has been
exacerbated around v5.2.  It lies in the recognition of all
three indentation styles simultaneously: a tab, two space,
and eight space character(s).  With it, it is not uncommon
to misidentify various constructs as method declarations
when they belong to two-space indented members and other
blocks of a type and are offset at eight space characters or
a tab from the start of the line.

For example,

------------------------------------------------------------
class Test
{
  static String hello() { return "hello"; }

  public static void main(String[] args)
  {
    try {
      if (args.length > 0) {
        // FIXME: eight spaces.
        System.out.println(args[0]);
      } else {
        // FIXME: a tab.
System.out.println(hello());
      }
    } catch (Exception e) {
      throw new Error(e);
    }
  }
}
------------------------------------------------------------

------------------------------------------------------------
:let g:java_highlight_functions = 'indent'
:doautocmd Syntax
------------------------------------------------------------

A better approach is to pick an only indentation style out
of all supported styles (so either two spaces _or_ eight
spaces _or_ a tab).  Note that tabs and spaces can still be
mixed, only the leading tab or the leading run of spaces
matters for the recognition.  And there is no reason to not
complement the set of valid styles with any number of spaces
from 1 to 8, inclusively.

Please proceed with the necessary change as follows:

- rename from "indent" to "indent2" for a 2-space run;
- rename from "indent" to "indent8" for an 8-space run;
- continue to have "indent" for a tab run;
- define an "indent" variable with a suffix number denoting
  the preferred amount of indentation for any other run of
  spaces [1-8].

As before, this alternative style of recognition of method
declarations still does not prescribe naming conventions and
still cannot recognise method declarations in nested types
that are conventionally indented.

The proposed changes also follow suit of "style" in stopping
the claiming of constructor and enum constant declarations.

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 days agoruntime(doc): Fix a typo in usr_30.txt
UM-Li [Mon, 29 Apr 2024 18:22:10 +0000 (20:22 +0200)] 
runtime(doc): Fix a typo in usr_30.txt

closes: #14662

Signed-off-by: UM-Li <um-li@tuta.io>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 days agoruntime(jq): remove undefined var s:save_cpoptions and add include setting
GodFather [Mon, 29 Apr 2024 18:16:29 +0000 (20:16 +0200)] 
runtime(jq): remove undefined var s:save_cpoptions and add include setting

closes: #14661
closes: #14663

Co-authored-by: itchyny <itchyny@cybozu.co.jp>
Signed-off-by: GodFather <vito.blog@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 days agoruntime(asm): missing setlocal in indent plugin (#14658)
Marc Sven Schulte [Sun, 28 Apr 2024 19:43:03 +0000 (21:43 +0200)] 
runtime(asm): missing setlocal in indent plugin (#14658)

Signed-off-by: Marc Sven Schulte <167623652+msschulte@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.1.0380: Calculating line height for unnecessary amount of lines v9.1.0380
Luuk van Baal [Sun, 28 Apr 2024 14:24:02 +0000 (16:24 +0200)] 
patch 9.1.0380: Calculating line height for unnecessary amount of lines

Problem:  Calculating line height for unnecessary amount of lines with
          half-page scrolling (zhscn, after 9.1.0280)
Solution: Replace "limit_winheight" argument with higher resolution
          "max" argument to which to limit the calculated line height
          in plines_m_win() to (Luuk van Baal)

fixes: #14650
closes: #14652

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agoruntime(ssa): improve syntax file performance (#14654)
ObserverOfTime [Sun, 28 Apr 2024 14:22:55 +0000 (17:22 +0300)] 
runtime(ssa): improve syntax file performance (#14654)

fixes: #14653

Signed-off-by: ObserverOfTime <chronobserver@disroot.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.1.0379: There are a few typos v9.1.0379
zeertzjq [Sun, 28 Apr 2024 14:20:55 +0000 (16:20 +0200)] 
patch 9.1.0379: There are a few typos

Problem:  There are a few typos
Solution: Fix them (zeertzjq)

closes: #14655

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.1.0378: Vim9: no comments allowed after class vars v9.1.0378
Yegappan Lakshmanan [Sun, 28 Apr 2024 07:54:09 +0000 (09:54 +0200)] 
patch 9.1.0378: Vim9: no comments allowed after class vars

Problem:  Vim9: no comments allowed after class vars
          (Christian Robinson, after 9.1.376)
Solution: Allow trailing comments after class vars
          (Yegappan Lakshmanan)

closes: #14651

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agoruntime(doc): CI: remove trailing white space in documentation
Christian Brabandt [Sat, 27 Apr 2024 10:01:15 +0000 (12:01 +0200)] 
runtime(doc): CI: remove trailing white space in documentation

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agopatch 9.1.0377: Formatting text wrong when 'breakindent' is set v9.1.0377
Christian Brabandt [Sat, 27 Apr 2024 09:55:08 +0000 (11:55 +0200)] 
patch 9.1.0377: Formatting text wrong when 'breakindent' is set

Problem:  formatting text wrong when 'breakindent' is set
          (Gary Johnson)
Solution: temporarily disable 'breakindent' option when formatting text,
          so that the breakindent is not wrongly taken into account for
          the line length

fixes: #14630
closes: #14637

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agoruntime(debversions): Add oracular (24.10) as Ubuntu release name
Simon Quigley [Sat, 27 Apr 2024 09:51:45 +0000 (11:51 +0200)] 
runtime(debversions): Add oracular (24.10) as Ubuntu release name

closes: #14645

Signed-off-by: Simon Quigley <simon@tsimonq2.net>
Signed-off-by: James McCoy <jamessan@jamessan.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agopatch 9.1.0376: Vim9: Trailing commands after class/enum keywords ignored v9.1.0376
Yegappan Lakshmanan [Sat, 27 Apr 2024 09:36:12 +0000 (11:36 +0200)] 
patch 9.1.0376: Vim9: Trailing commands after class/enum keywords ignored

Problem:  Vim9: Trailing commands after class/enum keywords ignored
Solution: Remove EX_TRLBAR keyword from command definition
          (Yegappan Lakshmanan)

closes: #14649

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agopatch 9.1.0375: tests: 1-second delay after Test_BufEnter_botline() v9.1.0375
zeertzjq [Sat, 27 Apr 2024 09:33:24 +0000 (11:33 +0200)] 
patch 9.1.0375: tests: 1-second delay after Test_BufEnter_botline()

Problem:  tests: 1-second delay after Test_BufEnter_botline()
          (after v9.1.0374)
Solution: Wipe the created buffers (zeertzjq).

closes: #14647

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agoruntime(doc): update helptags for jq syntax (#14646)
Philip H [Sat, 27 Apr 2024 09:31:53 +0000 (11:31 +0200)] 
runtime(doc): update helptags for jq syntax (#14646)

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agoruntime(jq): include syntax, ftplugin and compiler plugin
Vito [Fri, 26 Apr 2024 20:36:20 +0000 (22:36 +0200)] 
runtime(jq): include syntax, ftplugin and compiler plugin

closes: #14619

Signed-off-by: Vito <vito.blog@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agoruntime(doc): fix typo synconcealend -> synconcealed (#14644)
Philip H [Fri, 26 Apr 2024 17:57:20 +0000 (19:57 +0200)] 
runtime(doc): fix typo synconcealend -> synconcealed (#14644)

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agoruntime(comment): include a simple comment toggling plugin
Maxim Kim [Fri, 26 Apr 2024 17:53:13 +0000 (19:53 +0200)] 
runtime(comment): include a simple comment toggling plugin

fixes #14626
closes: #14634

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agoruntime(doc): fix typo
Christian Brabandt [Fri, 26 Apr 2024 16:56:21 +0000 (18:56 +0200)] 
runtime(doc): fix typo

Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agopatch 9.1.0374: wrong botline in BufEnter v9.1.0374
Jaehwang Jung [Fri, 26 Apr 2024 16:48:48 +0000 (18:48 +0200)] 
patch 9.1.0374: wrong botline in BufEnter

Problem:  When :edit an existing buffer, line('w$') may return a
          wrong result.
Solution: Reset w_valid in curwin_init() (Jaehwang Jung)

`do_ecmd()` reinitializes the current window (`curwin_init()`) whose
`w_valid` field may have `VALID_BOTLINE` set. Resetting `w_botline`
without marking it as invalid makes subsequent `validate_botline()`
calls a no-op, thus resulting in wrong `line('w$')` value.

closes: #14642

Signed-off-by: Jaehwang Jung <tomtomjhj@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agoCI: ubuntu-toolchain-r/test repository will be removed (#14641)
Philip H [Fri, 26 Apr 2024 16:45:41 +0000 (18:45 +0200)] 
CI: ubuntu-toolchain-r/test repository will be removed (#14641)

* CI: ubuntu-toolchain-r/test repository will be removed

The ubuntu-toolchain-r/test PPA will be removed from Ubuntu images.
The images rollout process will start on May 6 and take 3-4 days.
Mitigation ways

The repository can still be added manually in runtime by calling to following commands:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y

* fixup: add a note what this repo is for

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agoruntime(doc): clarify syntax vs matching mechanism
Christian Brabandt [Fri, 26 Apr 2024 16:42:59 +0000 (18:42 +0200)] 
runtime(doc): clarify syntax vs matching mechanism

fixes: #14643

Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agoruntime(asm): fix undefined variable in indent plugin
Christian Brabandt [Thu, 25 Apr 2024 20:42:05 +0000 (22:42 +0200)] 
runtime(asm): fix undefined variable in indent plugin

It's an indent script, so we need to set the  b:undo_indent variable
instead of the b:undo_ftplugin var.

fixes: #14602

Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agopatch 9.1.0373: ops.c code uses too many strlen() calls v9.1.0373
John Marriott [Thu, 25 Apr 2024 19:39:18 +0000 (21:39 +0200)] 
patch 9.1.0373: ops.c code uses too many strlen() calls

Problem:  ops.c code uses too many strlen() calls
Solution: Refactor code and remove more strlen() calls
          (John Marriott)

closes: #14598

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agopatch 9.1.0372: Calling CLEAR_FIELD() on the same struct twice v9.1.0372
zeertzjq [Thu, 25 Apr 2024 19:34:10 +0000 (21:34 +0200)] 
patch 9.1.0372: Calling CLEAR_FIELD() on the same struct twice

Problem:  Calling CLEAR_FIELD() on the same struct twice.
Solution: Remove the second CLEAR_FIELD().  Move the assignment of
          cookie.sourceing_lnum (zeertzjq).

closes: #14627

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agopatch 9.1.0371: Vim9: compile_def_function() still too long v9.1.0371
Yegappan Lakshmanan [Thu, 25 Apr 2024 19:30:56 +0000 (21:30 +0200)] 
patch 9.1.0371: Vim9: compile_def_function() still too long

Problem:  Vim9: compile_def_function() still too long
Solution: Refactor the code into separate functions
          (Yegappan Lakshmanan)

closes: #14632

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agotranslation(sr): Update Serbian messages (#14633)
Ivan Pešić [Thu, 25 Apr 2024 19:29:58 +0000 (23:29 +0400)] 
translation(sr): Update Serbian messages (#14633)

Signed-off-by: Ivan Pešić <27575106+eevan78@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agopatch 9.1.0370: MS-Windows: patch number is zero in installer v9.1.0370
RestorerZ [Thu, 25 Apr 2024 19:25:19 +0000 (21:25 +0200)] 
patch 9.1.0370: MS-Windows: patch number is zero in installer

Problem:  MS-Windows: patch number is zero in installer
          (jonathan-b-wiebe)
Solution: Set VIM_VERSION_PATCHLEVEL, fix a few typos in the installer
          (RestorerZ)

fixes: #14629
closes: #14635

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agoruntime(doc): clarify the effect of setting the shell to powershell
Christian Brabandt [Thu, 25 Apr 2024 19:21:37 +0000 (21:21 +0200)] 
runtime(doc): clarify the effect of setting the shell to powershell

fixes: #14636

Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agoruntime(java): Improve the recognition of the "style" method declarations
Aliaksei Budavei [Wed, 24 Apr 2024 19:04:25 +0000 (21:04 +0200)] 
runtime(java): Improve the recognition of the "style" method declarations

- Request the new regexp engine (v7.3.970) for [:upper:] and
  [:lower:].

- Recognise declarations of in-line annotated methods.

- Recognise declarations of _strictfp_ methods.

- Establish partial order for method modifiers as shown in
  the MethodModifier production; namely, _public_ and
  friends should be written the leftmost, possibly followed
  by _abstract_ or _default_, or possibly followed by other
  modifiers.

- Stop looking for parameterisable primitive types (void<?>,
  int<Object>, etc., are malformed).

- Stop looking for arrays of _void_.

- Acknowledge the prevailing convention for method names to
  begin with a small letter and for class/interface names to
  begin with a capital letter; and, therefore, desist from
  claiming declarations of enum constants and constructors
  with javaFuncDef.
  Rationale:
    + Constructor is distinct from method:
      * its (overloaded) name is not arbitrary;
      * its return type is implicit;
      * its _throws_ clause depends on indirect vagaries of
        instance (variable) initialisers;
      * its invocation makes other constructors of its type
        hierarchy invoked one by one, concluding with the
        primordial constructor;
      * its explicit invocation, via _this_ or _super_, can
        only appear as the first statement in a constructor
        (not anymore, see JEP 447); else, its _super_ call
        cannot appear in constructors of _record_ or _enum_;
        and neither invocation is allowed for the primordial
        constructor;
      * it is not a member of its class, like initialisers,
        and is never inherited;
      * it is never _abstract_ or _native_.
    + Constructor declarations tend to be few in number and
      merit visual recognition from method declarations.
    + Enum constants define a fixed set of type instances
      and more resemble class variable initialisers.

Note that the code duplicated for @javaFuncParams is written
keeping in mind for g:java_highlight_functions a pending 3rd
variant, which would require none of the :syn-cluster added
groups.

closes: #14620

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agopatch 9.1.0369: Vim9: problem when importing autoloaded scripts v9.1.0369
Ernie Rael [Wed, 24 Apr 2024 18:07:50 +0000 (20:07 +0200)] 
patch 9.1.0369: Vim9: problem when importing autoloaded scripts

Problem:  Vim9: problem when importing autoloaded scripts
Solution: In `:def` handle storing to vim9 autoload export
          (Ernie Rael)

Problem occurs when `import autoload ./.../autoload/...`. The autoload
in the specified path causes the use of an autoload_prefix which combines
with the `import autoload` to create trouble.

In `generate_store_var()` `case dest_script` use ISN_STOREEXPORT,
when needed, instead of ISN_STORES. When executing ISN_STOREEXPORT,
check for autoload_prefix.

fixes: #14606
closes: #14615

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
10 days agoCI: remove microsoft-prod.list repository (#14628)
Philip H [Wed, 24 Apr 2024 17:55:11 +0000 (19:55 +0200)] 
CI: remove microsoft-prod.list repository (#14628)

This is added by default, and it is often broken, but we don't need anything from it.

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 days agopatch 9.1.0368: MS-Windows: Hard to define the Vim Patchlevel with leading zeroes v9.1.0368
RestorerZ [Tue, 23 Apr 2024 18:33:38 +0000 (20:33 +0200)] 
patch 9.1.0368: MS-Windows: Hard to define the Vim Patchlevel with leading zeroes

Problem:  MS-Windows: Hard to define the Vim Patchlevel with leading
          zeroes for the installer
Solution: re-define VIM_VERSION_PATCHLEVEL_STR with leading zeroes,
          interpret Patchlevel as decimal in Make_mvc.mak
          (RestorerZ)

closes: #14471

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 days agopatch 9.1.0367: compile_def_function is too long v9.1.0367
Yegappan Lakshmanan [Tue, 23 Apr 2024 18:14:46 +0000 (20:14 +0200)] 
patch 9.1.0367: compile_def_function is too long

Problem:  compile_def_function is too long
Solution: Move out the code to compile the body of a function
          (Yegappan Lakshmanan)

closes: #14622

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 days agopatch 9.1.0366: filetype: ondir files are not recognized v9.1.0366
Jon Parise [Mon, 22 Apr 2024 19:07:41 +0000 (21:07 +0200)] 
patch 9.1.0366: filetype: ondir files are not recognized

Problem:  filetype: ondir files are not recognized
Solution: Detect '.ondirrc' as ondir filetype
          (Jon Parise)

closes: #14604

Signed-off-by: Jon Parise <jon@indelible.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 days agopatch 9.1.0365: Crash when typing many keys with D- modifier v9.1.0365
zeertzjq [Mon, 22 Apr 2024 19:04:29 +0000 (21:04 +0200)] 
patch 9.1.0365: Crash when typing many keys with D- modifier

Problem:  Crash when typing many keys with D- modifier (after 9.1.0227).
Solution: Don't treat a 0x80 byte inside a special sequence as the start
          of a special sequence (zeertzjq).

closes: #14613

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 days agopatch 9.1.0364: tests: test_vim9_builtin is a bit slow v9.1.0364
Yegappan Lakshmanan [Mon, 22 Apr 2024 18:58:24 +0000 (20:58 +0200)] 
patch 9.1.0364: tests: test_vim9_builtin is a bit slow

Problem:  tests: test_vim9_builtin is a bit slow
Solution: source tests from a buffer instead of
          writing and sourcing a file (Yegappan Lakshmanan)

closes: #14614

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 days agoruntime(doc): update documentation
RestorerZ [Mon, 22 Apr 2024 18:55:32 +0000 (20:55 +0200)] 
runtime(doc): update documentation

closes: #14616

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 days agoCI: change the download URL of "libsodium" (#14618)
Restorer [Mon, 22 Apr 2024 18:48:43 +0000 (18:48 +0000)] 
CI: change the download URL of "libsodium" (#14618)

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 days agopatch 9.1.0363: tests: test_winfixbuf is a bit slow v9.1.0363
Yegappan Lakshmanan [Sun, 21 Apr 2024 17:50:21 +0000 (19:50 +0200)] 
patch 9.1.0363: tests: test_winfixbuf is a bit slow

Problem:  tests: test_winfixbuf is a bit slow
Solution: use defer if possible, reset hidden option, use --not-a-term
          when starting Vim using system() (Yegappan Lakshmanan)

closes: #14611

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 days agoruntime(astro): Add filetype, syntax and indent plugin
Philip H [Sun, 21 Apr 2024 13:44:10 +0000 (15:44 +0200)] 
runtime(astro): Add filetype, syntax and indent plugin

related: #14558
closes: #14561

ported from: https://github.com/wuelnerdotexe/vim-astro

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 days agopatch 9.1.0362: expanding rc config files does not work well v9.1.0362
Christian Brabandt [Sun, 21 Apr 2024 12:52:20 +0000 (14:52 +0200)] 
patch 9.1.0362: expanding rc config files does not work well

Problem:  expanding rc config files does not work well
          (Michał Sieroń, after v9.1.0327)
Solution: initialize chartab option, required to expand
          evironment variables

fixes: #14597

Co-authored-by: author
Signed-off-by: author
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 days agopatch 9.1.0361: Vim9: vim9type.c is too complicated v9.1.0361
Yegappan Lakshmanan [Sun, 21 Apr 2024 12:48:57 +0000 (14:48 +0200)] 
patch 9.1.0361: Vim9: vim9type.c is too complicated

Problem:  Vim9: vim9type.c is too complicated
Solution: Refactor a few functions in vim9type.c
          (Yegappan Lakshmanan)

closes: #14605

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 days agopatch 9.1.0360: Vim9: does not handle autoloaded variables well v9.1.0360
Ernie Rael [Sun, 21 Apr 2024 12:45:48 +0000 (14:45 +0200)] 
patch 9.1.0360: Vim9: does not handle autoloaded variables well

Problem:  Vim9: does not handle autoloaded variables well
Solution: Better handle script-level exported variable references from
          autoload files (Ernie Rael).

fixes: #14591
closes: #14607

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 days agoruntime(doc): minor spell fix in starting.txt
Diego Viola [Sun, 21 Apr 2024 12:39:49 +0000 (14:39 +0200)] 
runtime(doc): minor spell fix in starting.txt

closes: #14608

Signed-off-by: Diego Viola <diego.viola@gmail.com>
2 weeks agopatch 9.1.0359: MS-Windows: relative import in a script sourced from a buffer doesn... v9.1.0359
Yegappan Lakshmanan [Sat, 20 Apr 2024 16:31:21 +0000 (18:31 +0200)] 
patch 9.1.0359: MS-Windows: relative import in a script sourced from a buffer doesn't work

Problem:  MS-Windows: Relative import in a script sourced from a buffer
          doesn't work (Ernie Rael)
Solution: Set a filename, so that we are not trying to use
          script-relative filename (Yegappan Lakshmanan)

When a script is sourced from a buffer, the file name is set to ":source
buffer=". In MS-Windows, the ":" is a path separator character (used
after a drive letter). This results in the code trying to use the ":"
prefix to import the script on MS-Windows. To fix this, when importing a
script from a script sourced from a buffer with nofile, don't use
a script relative path name.

fixes #14588
closes: #14603

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0358: wrong drawing in GUI with setcellwidth() v9.1.0358
h-east [Sat, 20 Apr 2024 15:57:19 +0000 (17:57 +0200)] 
patch 9.1.0358: wrong drawing in GUI with setcellwidth()

Problem:  wrong drawing in GUI with setcellwidth()
          (after v9.1.0344)
Solution: move gui.in_use condition (h-east)

closes: #14600

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agoftplugin(cmake): Add include and suffixesadd
Wu, Zhenyu [Sat, 20 Apr 2024 15:53:08 +0000 (17:53 +0200)] 
ftplugin(cmake): Add include and suffixesadd

closes: #14520

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0357: Page scrolling should place cursor at window boundaries v9.1.0357
Luuk van Baal [Sat, 20 Apr 2024 15:38:20 +0000 (17:38 +0200)] 
patch 9.1.0357: Page scrolling should place cursor at window boundaries

Problem:  Page scrolling does not always place the cursor at the top or
          bottom of the window (Mathias Rav)
Solution: Place the cursor at the top or bottom of the window.
          (Luuk van Baal)

fixes: #14585
closes: #14586

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agoruntime(doc): align command line table
Christian Brabandt [Sat, 20 Apr 2024 15:12:59 +0000 (17:12 +0200)] 
runtime(doc): align command line table

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agoruntime(doc): minor fixes to starting.txt
Diego Viola [Fri, 19 Apr 2024 13:51:44 +0000 (15:51 +0200)] 
runtime(doc): minor fixes to starting.txt

closes: #14593

Signed-off-by: Diego Viola <diego.viola@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0356: MS-Windows: --remote may change working directory v9.1.0356
Christian Brabandt [Fri, 19 Apr 2024 13:22:33 +0000 (15:22 +0200)] 
patch 9.1.0356: MS-Windows: --remote may change working directory

Problem:  MS-Windows: --remote may change working directory when
          'shellslash' is set
Solution: normalize directory separators on MS-Windows

fixes: #14549
closes: #14587

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agoruntime(bp): fix comment definition in filetype plugin (#14594)
Bruno BELANYI [Fri, 19 Apr 2024 13:19:31 +0000 (14:19 +0100)] 
runtime(bp): fix comment definition in filetype plugin (#14594)

I somehow messed up the previous patch, I think a copy-paste error when
creating the file.

Blueprint files have C and C++ style comments, not shell-like '#'
comments.

Signed-off-by: Bruno BELANYI <bruno@belanyi.fr>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0355: filetype: flake.lock files are not recognized v9.1.0355
Riley Bruins [Fri, 19 Apr 2024 13:13:38 +0000 (15:13 +0200)] 
patch 9.1.0355: filetype: flake.lock files are not recognized

Problem:  filetype: flake.lock files are not recognized
Solution: Detect 'flake.lock' as json filetype
          (Riley Bruins)

closes: #14589

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0354: runtime(uci): No support for uci file types v9.1.0354
Colin Caine [Thu, 18 Apr 2024 21:53:02 +0000 (23:53 +0200)] 
patch 9.1.0354: runtime(uci): No support for uci file types

Problem:  runtime(uci): No support for uci file types
          (Wu, Zhenyu)
Solution: include basic uci ftplugin and syntax plugins
          (Colin Caine)

closes: #14575

Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Colin Caine <complaints@cmcaine.co.uk>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agoruntime(java): Support "g:ftplugin_java_source_path" with archived files
Aliaksei Budavei [Thu, 18 Apr 2024 21:01:52 +0000 (23:01 +0200)] 
runtime(java): Support "g:ftplugin_java_source_path" with archived files

Also, document for "g:ftplugin_java_source_path" its current
modification of the local value of the 'path' option.

closes: #14570

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0353: tests: Test_autoload_import_relative_compiled fails on Windows v9.1.0353
Ernie Rael [Thu, 18 Apr 2024 20:53:33 +0000 (22:53 +0200)] 
patch 9.1.0353: tests: Test_autoload_import_relative_compiled fails on Windows

Problem:  tests: Test_autoload_import_relative_compiled fails on Windows
Solution: Disable on Windows for now, add missing :bw for clean-up (Ernie Rael)

closes: #14579

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0352: Finding cmd modifiers and cmdline-specials is inefficient v9.1.0352
John Marriott [Thu, 18 Apr 2024 20:46:56 +0000 (22:46 +0200)] 
patch 9.1.0352: Finding cmd modifiers and cmdline-specials is inefficient

Problem:  Finding cmd modifiers and cmdline-specials is inefficient
Solution: Use binary search to find ex command modifiers and
          cmdline-special characters and reduce the number of strlen()
          (John Marriott)

closes: #14534

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0351: No test that completing a partial mapping clears 'showcmd' v9.1.0351
zeertzjq [Thu, 18 Apr 2024 20:09:37 +0000 (22:09 +0200)] 
patch 9.1.0351: No test that completing a partial mapping clears 'showcmd'

Problem:  No test that completing a partial mapping clears 'showcmd'.
Solution: Complete partial mappings in Test_showcmd_part_map() instead
          of using :echo.  Adjust some comments (zeertzjq).

closes: #14580

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0350: tests: test_vim9_dissamble may fail v9.1.0350
Julio B [Thu, 18 Apr 2024 20:05:12 +0000 (22:05 +0200)] 
patch 9.1.0350: tests: test_vim9_dissamble may fail

Problem:  tests: test_vim9_dissamble may fail
Solution: Instead of hard-coding the lambda number, accept
          just any number (Julio B)

closes: #14581

Signed-off-by: Julio B <julio.bacel@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0349: Vim9: need static type for typealias v9.1.0349
Yegappan Lakshmanan [Thu, 18 Apr 2024 19:33:27 +0000 (21:33 +0200)] 
patch 9.1.0349: Vim9: need static type for typealias

Problem:  Vim9: need static type for typealias
Solution: Refactor the typval2type() function and add a static type for
          typealias (Yegappan Lakshmanan)

closes: #14582

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0348: X11 does not ignore smooth scroll event v9.1.0348
lilydjwg [Thu, 18 Apr 2024 19:22:57 +0000 (21:22 +0200)] 
patch 9.1.0348: X11 does not ignore smooth scroll event

Problem:  X11 does not ignore smooth scroll event
          (laniakea64)
Solution: Correctly ignore unwanted smooth scroll events on X11
          (lilydjwg)

fixes #14578
closes: #14583

Signed-off-by: lilydjwg <lilydjwg@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0347: A few typos in test_xdg when testing gvimrc v9.1.0347
Diego Viola [Thu, 18 Apr 2024 18:54:06 +0000 (20:54 +0200)] 
patch 9.1.0347: A few typos in test_xdg when testing gvimrc

Problem:  A few typos in test_xdg when testing gvimrc
Solution: Fix them (Diego Viola)

closes: #14584

Signed-off-by: Diego Viola <diego.viola@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0346: Patch v9.1.0338 fixed sourcing a script with import v9.1.0346
Ernie Rael [Wed, 17 Apr 2024 20:36:32 +0000 (22:36 +0200)] 
patch 9.1.0346: Patch v9.1.0338 fixed sourcing a script with import

Problem:  Patch v9.1.0338 fixed sourcing a script with import
Solution: Add test `import './file.vim' and verify it works with `:source`
          so it does not regress (Ernie Rael)

closes: #14577

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0345: Problem: gvimrc not sourced from XDG_CONFIG_HOME v9.1.0345
Maxim Kim [Wed, 17 Apr 2024 20:29:06 +0000 (22:29 +0200)] 
patch 9.1.0345: Problem: gvimrc not sourced from XDG_CONFIG_HOME

Problem:  gvimrc not sourced from XDG_CONFIG_HOME (after v9.1.0327)
Solution: Also try to source from ~/.config/vim/gvimrc and
          $XDG_CONFIG_HOME/vim/gvimrc (Maxim Kim)

fixes: #14567
closes: #14568

Signed-off-by: Maxim Kim <habamax@haba-debian.habamax>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0344: Cursor wrong after using setcellwidth() in terminal v9.1.0344
mikoto2000 [Wed, 17 Apr 2024 20:06:54 +0000 (22:06 +0200)] 
patch 9.1.0344: Cursor wrong after using setcellwidth() in terminal

Problem:  Cursor wrong after using setcellwidth() in terminal
          (mikoto2000)
Solution: output additional spaces, so the behaviour matches the GUI
          (mikoto2000)

fixes: #14539
closes: #14540

Signed-off-by: mikoto2000 <mikoto2000@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Fix CUI `setcellwidths` characters draw behavior to same GUI behavior.

2 weeks agopatch 9.1.0343: 'showcmd' wrong for partial mapping with multibyte v9.1.0343
zeertzjq [Wed, 17 Apr 2024 19:28:54 +0000 (21:28 +0200)] 
patch 9.1.0343: 'showcmd' wrong for partial mapping with multibyte

Problem:  'showcmd' is wrong for partial mapping with multibyte char,
          and isn't very readable with modifyOtherKeys.
Solution: Decode multibyte char and merge modifiers into the char.
          (zeertzjq)

This improves the following situations:
- Multibyte chars whose individual bytes are considered unprintable are
  now shown properly in 'showcmd' area.
- Ctrl-W with modifyOtherKeys now shows ^W in 'showcmd' area.

The following situation may still need improvement:
- If the char is a special key or has modifiers that cannot be merged
  into it, internal keycodes are shown in 'showcmd' area like before.
  This applies to keys typed in Normal mode commands as well, and it's
  hard to decide how to make it more readable due to the limited space
  taken by 'showcmd', so I'll leave it for later.

closes: #14572

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0342: tests: test_taglist fails when 'helplang' contains non-english v9.1.0342
Julio B [Tue, 16 Apr 2024 20:55:04 +0000 (22:55 +0200)] 
patch 9.1.0342: tests: test_taglist fails when 'helplang' contains non-english

Problem:  tests: test_taglist fails when 'helplang' contains non-english
Solution: Allow 1 or 2 tagfiles for now (Julio B)

related: #14312
closes: #14566

Signed-off-by: Julio B <julio.bacel@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0341: Problem: a few memory leaks are found v9.1.0341
Christian Brabandt [Tue, 16 Apr 2024 20:44:31 +0000 (22:44 +0200)] 
patch 9.1.0341: Problem: a few memory leaks are found

Problem:  a few memory leaks are found
          (LuMingYinDetect )
Solution: properly free the memory

Fixes the following problems:
- Memory leak in f_maplist()
  fixes: #14486

- Memory leak in option.c
  fixes: #14485

- Memory leak in f_resolve()
  fixes: #14484

- Memory leak in f_autocmd_get()
  related: #14474

- Memory leak in dict_extend_func()
  fixes: #14477
  fixes: #14238

closes: #14517

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0340: Problem: Error with matchaddpos() and empty list v9.1.0340
Christian Brabandt [Tue, 16 Apr 2024 20:23:17 +0000 (22:23 +0200)] 
patch 9.1.0340: Problem: Error with matchaddpos() and empty list

Problem:  Error with matchaddpos() and empty list
          (@rickhow)
Solution: Return early for an empty list

fixes: #14525
closes: #14563

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0339: tests: xdg test uses screen dumps v9.1.0339
Yegappan Lakshmanan [Tue, 16 Apr 2024 20:18:15 +0000 (22:18 +0200)] 
patch 9.1.0339: tests: xdg test uses screen dumps

Problem:  tests: xdg test uses screen dumps
Solution: Convert screen dump to normal test
          (Yegappan Lakshmanan)

closes: #14564

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0338: Vim9: import through symlinks not correctly handled v9.1.0338
Ernie Rael [Tue, 16 Apr 2024 20:11:56 +0000 (22:11 +0200)] 
patch 9.1.0338: Vim9: import through symlinks not correctly handled

Problem:  Vim9: import through symlinks not correctly handled
Solution: Check for script being a symlink but only once
          (Ernie Rael)

closes: #14565

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>