]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
19 months agopatch 9.1.0401: filetype: zsh module files are not recognized v9.1.0401
Wu, Zhenyu [Thu, 9 May 2024 18:35:13 +0000 (20:35 +0200)] 
patch 9.1.0401: filetype: zsh module files are not recognized

Problem:  filetype: zsh module files are not recognized
Solution: Detect '*.mdh' and '*.epro' as C filetype, '*.mdd' as zsh
          filetype, determine zsh-modules '*.pro' from from it's content
          (Wu, Zhenyu)

closes: #14737

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(netrw): Remove hardcoded private.ppk logic from netrw
Nir Lichtman [Thu, 9 May 2024 18:20:36 +0000 (20:20 +0200)] 
runtime(netrw): Remove hardcoded private.ppk logic from netrw

closes: #14739

Signed-off-by: Nir Lichtman <nir@lichtman.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0400: Vim9: confusing error message for unknown type v9.1.0400
Yegappan Lakshmanan [Thu, 9 May 2024 07:12:31 +0000 (09:12 +0200)] 
patch 9.1.0400: Vim9: confusing error message for unknown type

Problem:  Vim9: confusing error message for unknown type
          (Doug Kearns)
Solution: For an unknown type, display only the type name in the error
          message (Yegappan Lakshmanan)

fixes: #13153
closes: #14736

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0399: block_editing errors out when using del v9.1.0399
Christian Brabandt [Wed, 8 May 2024 20:17:19 +0000 (22:17 +0200)] 
patch 9.1.0399: block_editing errors out when using del

Problem:  block_editing errors out when using del
          (@Jamarley)
Solution: Change ins_len from size_t to int and
          properly check that it doesn't become negative

There is a check in os.c that verifies that `ins_len` does not become
negative:
```
if (pre_textlen >= 0 && (ins_len = len - pre_textlen - offset) > 0)
```
However this only works, if ins_len can actually become negative and
unfortunately, ins_len has been declared as `size_t` so instead of
becoming negative it will wrap around and be very large.

So let's define it as integer, after which the condition above
properly catches this condition.

fixes: #14734
closes: #14735

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(spec): add new items to scripts section in syntax plugin
Maxwell G [Wed, 8 May 2024 18:27:58 +0000 (20:27 +0200)] 
runtime(spec): add new items to scripts section in syntax plugin

- %generate_buildrequires — added in RPM 4.15
- %conf — added in RPM 4.18

closes: #14723

Ref: https://rpm-software-management.github.io/rpm/manual/spec.html#build-scriptlets

Signed-off-by: author
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0398: Vim9: imported vars are not properly type checked v9.1.0398
Yegappan Lakshmanan [Wed, 8 May 2024 18:24:33 +0000 (20:24 +0200)] 
patch 9.1.0398: Vim9: imported vars are not properly type checked

Problem:  Vim9: imported vars are not properly type checked
Solution: Check the imported variable type properly
          (Yegappan Lakshmanan)

closes: #14729

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0397: Wrong display with 'smoothscroll' when changing quickfix list v9.1.0397
zeertzjq [Wed, 8 May 2024 18:22:40 +0000 (20:22 +0200)] 
patch 9.1.0397: Wrong display with 'smoothscroll' when changing quickfix list

Problem:  Wrong display with 'smoothscroll' when changing quickfix list.
Solution: Reset w_skipcol when replacing quickfix list (zeertzjq).

closes: #14730

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0396: filetype: jj files are not recognized v9.1.0396
Gregory Anders [Wed, 8 May 2024 18:17:43 +0000 (20:17 +0200)] 
patch 9.1.0396: filetype: jj files are not recognized

Problem:  jj files are not recognized
Solution: recognize '*.jjdescription' files as jj filetype
          (Gregory Anders)

See: https://github.com/martinvonz/jj

closes: #14733

Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0395: getregionpos() may leak memory on error v9.1.0395
Christian Brabandt [Wed, 8 May 2024 17:50:26 +0000 (19:50 +0200)] 
patch 9.1.0395: getregionpos() may leak memory on error

Problem:  regionpos may leak memory on error, coverity
          complains about dereferencing Null pointer
Solution: free all list pointers (after v9.1.394),
          return early if buflist_findnr() returns NULL

closes: #14731

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoThe CODEOWNERS File is not useful
Christian Brabandt [Wed, 8 May 2024 17:39:54 +0000 (19:39 +0200)] 
The CODEOWNERS File is not useful

Github is complaining about "This file has errors" and is just noisy
and for that reason does not ping maintainers if a new issue/PR is
created.
Let's just rename it to MAINTAINERS file instead and update the
documentation.

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(netrw): Remove and cleanup Win9x legacy from netrw
Nir Lichtman [Wed, 8 May 2024 17:19:34 +0000 (19:19 +0200)] 
runtime(netrw): Remove and cleanup Win9x legacy from netrw

closes: #14732

Signed-off-by: Nir Lichtman <nir@lichtman.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(doc): add MsgArea to 'highlight' option description
Christian Brabandt [Tue, 7 May 2024 19:19:03 +0000 (21:19 +0200)] 
runtime(doc): add MsgArea to 'highlight' option description

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0394: Cannot get a list of positions describing a region v9.1.0394
Shougo Matsushita [Tue, 7 May 2024 18:49:24 +0000 (20:49 +0200)] 
patch 9.1.0394: Cannot get a list of positions describing a region

Problem:  Cannot get a list of positions describing a region
          (Justin M. Keyes, after v9.1.0120)
Solution: Add the getregionpos() function
          (Shougo Matsushita)

fixes: #14609
closes: #14617

Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(cpp): Fix digit separator in syntax script for octals and floats
Wu Yongwei [Tue, 7 May 2024 16:24:55 +0000 (18:24 +0200)] 
runtime(cpp): Fix digit separator in syntax script for octals and floats

Also fix the incorrect rendering of floats that start with ".".

closes: #14724

Signed-off-by: Wu Yongwei <wuyongwei@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoREADME.md: Update link to Wikipedia Vi page
Christian Brabandt [Tue, 7 May 2024 16:17:00 +0000 (18:17 +0200)] 
README.md: Update link to Wikipedia Vi page

fixes: #14725

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(sh,zsh): clear $MANPAGER in ftplugin before shelling out
D. Ben Knoble [Mon, 6 May 2024 17:52:53 +0000 (19:52 +0200)] 
runtime(sh,zsh): clear $MANPAGER in ftplugin before shelling out

Say you use Vim and set MANPAGER='vim -M +MANPAGER --not-a-term -'; then
:{Zs,S}hKeywordPrg (or K) will crap out and spew terminal garbage into
less when bash's "help" fails. This was introduced by 2f25e40b1
(runtime: configure keywordpg for some file types (#5566), 2023-08-23)
and may be present in other files touched by that commit.

Make the "man" invocation sensible by unsetting MANPAGER in the
environment.

Note that changing MANPAGER for `:terminal` is not needed; Vim within
Vim is perfectly fine.

closes: #14679

Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(doc): Fix typos in help documents
h-east [Sun, 5 May 2024 16:42:31 +0000 (18:42 +0200)] 
runtime(doc): Fix typos in help documents

closes: #14720

Co-authored-by: Christian Clason <c.clason@uni-graz.at>
Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0393: 'viewdir' not respecting $XDG_CONFIG_HOME 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
20 months 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>
20 months 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>
20 months 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>
20 months 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>
20 months 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>
20 months 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>
20 months 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>
20 months 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>
20 months 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>
20 months 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>
20 months 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>
20 months 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>
20 months 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>
20 months 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>
20 months 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>
20 months 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>