]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
2 years agoruntime: don't execute external commands when loading ftplugins
Christian Brabandt [Wed, 6 Sep 2023 18:41:25 +0000 (20:41 +0200)] 
runtime: don't execute external commands when loading ftplugins

This is a followup to 816fbcc262687b81fc46f82f7bbeb1453addfe0c (patch
9.0.1833: [security] runtime file fixes)

It basically disables that external commands are run on loading of the
filetype plugin, **unless** the user has set the `g:plugin_exec = 1`
global variable in their configuration or for a specific filetype the
variable g:<filetype>_exec=1.

There are a few more plugins, that may execute system commands like
debchangelog, gitcommit, sh, racket, zsh, ps1 but those do at least
do not run those commands by default during loading of the filetype plugin
(there the command is mostly run as convenience for auto-completion or
to provide documentation lookup).

closes: #13034

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Tim Pope <vim@tpope.org>
2 years agopatch 9.0.1879: Vim9: incorrect duplicate class member detection v9.0.1879
Yegappan Lakshmanan [Wed, 6 Sep 2023 18:23:23 +0000 (20:23 +0200)] 
patch 9.0.1879: Vim9: incorrect duplicate class member detection

Problem:  Vim9: incorrect duplicate class member detection
Solution: Incorrect duplicate class member detection when variable names
          have the same prefix.  Not able to access class member variables
          using an object. Fix coding style issues

closes: #13042

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2 years agopatch 9.0.1878: tests running sh have problems v9.0.1878
Philip H [Wed, 6 Sep 2023 18:20:07 +0000 (20:20 +0200)] 
patch 9.0.1878: tests running sh have problems

Problem:  tests running sh have problems
Solution: Check that dash is installed

closes: #13040

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Co-authored-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1877: missing test for patch 9.0.1873 v9.0.1877
Christian Brabandt [Wed, 6 Sep 2023 17:53:36 +0000 (19:53 +0200)] 
patch 9.0.1877: missing test for patch 9.0.1873

Problem:  missing test for patch 9.0.1873
Solution: add a test trying to exchange windows

Add a test, making sure that switching windows is not allowed when
textlock is active, e.g. when running `:s/<pat>/\=func()/`

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agoruntime(ftplugin): allow to exec if curdir is in PATH
Anton Sharonov [Tue, 5 Sep 2023 19:03:27 +0000 (21:03 +0200)] 
runtime(ftplugin): allow to exec if curdir is in PATH

In case the current directory is present as valid $PATH entry, it is OK
to call the program from it, even if vim curdir is in that same
directory.

(Without that patch, for instance, you will not be able to open .zip
files while your current directory is /bin)

closes: #13027

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agoFilelist: Add missing directory `crash` (#13036)
zdohnal [Tue, 5 Sep 2023 18:55:47 +0000 (20:55 +0200)] 
Filelist: Add missing directory `crash` (#13036)

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1876: Vim9: parsing commands with newlines wrong v9.0.1876
Christian Brabandt [Tue, 5 Sep 2023 18:46:25 +0000 (20:46 +0200)] 
patch 9.0.1876: Vim9: parsing commands with newlines wrong

Problem:  Vim9: parsing commands with newlines wrong
Solution: Accept a '\n' for parsing lists and command arguments

closes: #13015
closes: #13020

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1875: Vim9: improve test for disassemble + static v9.0.1875
Yegappan Lakshmanan [Tue, 5 Sep 2023 18:42:18 +0000 (20:42 +0200)] 
patch 9.0.1875: Vim9: improve test for disassemble + static

Problem:  Vim9: improve test for disassemble + static
Solution: Add a Vim9 script disassemble test for an interface with
          static members
closes: #13037

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2 years agopatch 9.0.1874: CI may fail in test_recover_empty_swap v9.0.1874
Christian Brabandt [Tue, 5 Sep 2023 18:40:25 +0000 (20:40 +0200)] 
patch 9.0.1874: CI may fail in test_recover_empty_swap

Problem:  CI may fail in test_recover_empty_swap
Solution: Set directory option

Fix failing Test_recover_empty_swap test

:recover by default not only looks in the current directory, but also in
~/tmp for files to recover. If it finds some files to recover, it will
interactively prompt for a file to recover. However, prompting doesn't
work when running the test suite (and even if it would, there is no one
that can answer the prompt).

So it doesn't really make sense during testing, to inspect different
directories for swap files and prompt and wait (which will lead to a
timeout and therefore a failing test).

So set the 'directory' option temporarily to the current directory only
and reset it back once the test finishes.

closes: #13038

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1873: [security] heap-buffer-overflow in vim_regsub_both v9.0.1873
Christian Brabandt [Tue, 5 Sep 2023 18:18:06 +0000 (20:18 +0200)] 
patch 9.0.1873: [security] heap-buffer-overflow in vim_regsub_both

Problem:  heap-buffer-overflow in vim_regsub_both
Solution: Disallow exchanging windows when textlock is active

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1872: CI: test_crash() fails on CI v9.0.1872
Christian Brabandt [Tue, 5 Sep 2023 05:45:04 +0000 (07:45 +0200)] 
patch 9.0.1872: CI: test_crash() fails on CI

Problem:  CI: test_crash() fails on CI
Solution: Skip test on BSD

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1871: Github CI does not run i386 job v9.0.1871
James McCoy [Tue, 5 Sep 2023 05:41:23 +0000 (07:41 +0200)] 
patch 9.0.1871: Github CI does not run i386 job

Problem:  Github CI does not run i386 job
Solution: Add a i386 architecture

Add CI testing for i386

message_test recently failed on i386, which exposed a gap in the CI
testing.  Convert the shadowdir job to one that runs on i386 so we get
32-bit test coverage.

Since the GHA runners are x86_64, we can enable the i386 architecture
in dpkg and install i386 packages for the i386 CI jobs.  However, this
can't currently be done with features=huge since that would require
installing python3-dev:i386, which breaks the CI environment.

closes: #12975

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: James McCoy <jamessan@jamessan.com>
2 years agopatch 9.0.1870: Vim9: disassamble does not show static v9.0.1870
Ernie Rael [Tue, 5 Sep 2023 05:38:09 +0000 (07:38 +0200)] 
patch 9.0.1870: Vim9: disassamble does not show static

Problem:  Vim9: disassamble does not show static
Solution: Show static flag

Fix disassemble for instructions with optional static:
ISN_GET_OBJ_MEMBER and ISN_GET_ITF_MEMBER

closes: #13030

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ernie Rael <errael@raelity.com>
2 years agoruntime(menu): Fix "Open &Tab..." CJK translations to have shortcut key (#13031)
Yee Cheng Chin [Tue, 5 Sep 2023 05:36:07 +0000 (22:36 -0700)] 
runtime(menu): Fix "Open &Tab..." CJK translations to have shortcut key (#13031)

Previous PR (#12993) fixed localization files to point to "Open &Tab..."
but they didn't add the shortcut key to the translated names. This adds
the shortcut keys to the CJK translations in the form of "(&T)".

Note that this doesn't add the shortcut to latin script languages like
Czech. These types of translated names tend to also localize the
shortcut keys for them to make sense to the user and it's up to each
translator to decide how to do so. CJK translations tend to just take
the English key directly since it doesn't make sense to have a localized
shortcut key in general.

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1869: Coverity warns about unitialized var v9.0.1869
Ernie Rael [Tue, 5 Sep 2023 05:33:48 +0000 (07:33 +0200)] 
patch 9.0.1869: Coverity warns about unitialized var

Problem:  Coverity warns about unitialized var
Solution: initialize it

closes: #13029

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ernie Rael <errael@raelity.com>
2 years agopatch 9.0.1868: test_crash still fails for circle ci v9.0.1868
Christian Brabandt [Mon, 4 Sep 2023 20:42:55 +0000 (22:42 +0200)] 
patch 9.0.1868: test_crash still fails for circle ci

Problem:  test_crash still fails for circle ci
Solution: give even more time to complete

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agoruntime(sr): Update Serbian messages translation
Ivan Pešić [Mon, 4 Sep 2023 09:05:45 +0000 (13:05 +0400)] 
runtime(sr): Update Serbian messages translation

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1867: Vim9: access to interface statics possible v9.0.1867
Ernie Rael [Mon, 4 Sep 2023 20:30:41 +0000 (22:30 +0200)] 
patch 9.0.1867: Vim9: access to interface statics possible

Problem:  Vim9: access to interface statics possible
Solution: Prevent direct access to interface statics

closes: #13007

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ernie Rael <errael@raelity.com>
2 years agopatch 9.0.1866: undo is synced after character find v9.0.1866
zeertzjq [Mon, 4 Sep 2023 20:25:07 +0000 (22:25 +0200)] 
patch 9.0.1866: undo is synced after character find

Problem:  Undo is synced after character find.
Solution: Set no_u_sync when calling gotchars_nop().

closes: #13022
closes: #13024

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agoruntime(php): Update the php indent script to the 1.75 (from 1.70) (#13025)
John Wellesz [Mon, 4 Sep 2023 20:22:19 +0000 (22:22 +0200)] 
runtime(php): Update the php indent script to the 1.75 (from 1.70) (#13025)

Changes:

1.75:
- Fix 2072/PHP-Indenting-for-VIm#87: The indent optimization was causing wrong indentation of lines
  preceded by a line ending with '}' when preceded by non white characters.
- Fix long standing non-reported regex escaping issue in cleaning end of line
  comments function. This should help fixing some other unreported issues when
  parts of codes are commented out at ends of lines...

1.74:
- Fix 2072/PHP-Indenting-for-VIm#86: Add support for `match` expression.

1.73:
- Fix 2072/PHP-Indenting-for-VIm#77 where multi line strings and true/false keywords at beginning of a
  line would cause indentation failures.

1.72:
- Fix vim/vim#5722 where it was reported that the option PHP_BracesAtCodeLevel
  had not been working for the last 6 years.

1.71:
- Fix 2072/PHP-Indenting-for-VIm#75 where the indent script would hang on some multi-line quoted strings.

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agoruntime: Fix problem of checking wrong cwd for ruby ftplugin (#13026)
Anton Sharonov (ant0sha) [Mon, 4 Sep 2023 20:21:00 +0000 (22:21 +0200)] 
runtime: Fix problem of checking wrong cwd for ruby ftplugin (#13026)

Co-authored-by: Anton Sharonov <anton.sharonov@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1865: Vim9: garbage collection may cause crash v9.0.1865
Yegappan Lakshmanan [Mon, 4 Sep 2023 20:14:28 +0000 (22:14 +0200)] 
patch 9.0.1865: Vim9: garbage collection may cause crash

Problem:  Vim9: garbage collection may cause crash
Solution: validate that class members typeval is not null

closes: #13028

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2 years agopatch 9.0.1864: still crash with bt_quickfix1_poc v9.0.1864
Christian Brabandt [Mon, 4 Sep 2023 20:09:12 +0000 (22:09 +0200)] 
patch 9.0.1864: still crash with bt_quickfix1_poc

Problem:  crash with bt_quickfix1_poc when cleaning up
          and EXITFREE is defined
Solution: Test if buffer is valid in a window, else close
          window directly, don't try to access buffer properties

While at it, increase the crash timeout slightly, so that CI has a
chance to finish processing the test_crash() test.

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agotranslation(it): revert permission changes for xxd manpages
Christian Brabandt [Mon, 4 Sep 2023 05:57:52 +0000 (07:57 +0200)] 
translation(it): revert permission changes for xxd manpages

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1863: wrong format specifiers in e_aptypes_is_null_str_nr v9.0.1863
zeertzjq [Mon, 4 Sep 2023 05:54:02 +0000 (07:54 +0200)] 
patch 9.0.1863: wrong format specifiers in e_aptypes_is_null_str_nr

Problem:  wrong format specifiers in e_aptypes_is_null_str_nr
Solution: Fix the wrong format specifier

closes: #13020

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1862: Vim9 Garbage Collection issues v9.0.1862
Yegappan Lakshmanan [Mon, 4 Sep 2023 05:51:01 +0000 (07:51 +0200)] 
patch 9.0.1862: Vim9 Garbage Collection issues

Problem:  Vim9 Garbage Collection issues
Solution: Class members are garbage collected early leading to
          use-after-free problems.  Handle the garbage
          collection of classes properly.

closes: #13019

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2 years agopatch 9.0.1861: xxd: issue when -R is specified several times v9.0.1861
K.Takata [Mon, 4 Sep 2023 05:46:59 +0000 (07:46 +0200)] 
patch 9.0.1861: xxd: issue when -R is specified several times

Problem:  xxd: issue when -R is specified several times
Solution: Fix command line parsing

See: https://github.com/vim/vim/pull/12986#issuecomment-1704375892

closes: #13021

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: K.Takata <kentkt@csc.jp>
Co-authored-by: Aapo Rantalainen <aapo.rantalainen@gmail.com>
2 years agopatch 9.0.1860: CI: test_crash1() is flaky v9.0.1860
Christian Brabandt [Mon, 4 Sep 2023 05:42:27 +0000 (07:42 +0200)] 
patch 9.0.1860: CI: test_crash1() is flaky

Problem:  CI: test_crash1() is flaky
Solution: Wait a bit longer

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1859: heap-use-after-free in bt_normal() v9.0.1859
Christian Brabandt [Sun, 3 Sep 2023 19:43:46 +0000 (21:43 +0200)] 
patch 9.0.1859: heap-use-after-free in bt_normal()

Problem:  heap-use-after-free in bt_normal()
Solution: check that buffer is still valid

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1858: [security] heap use after free in ins_compl_get_exp() v9.0.1858
Christian Brabandt [Sun, 3 Sep 2023 19:24:33 +0000 (21:24 +0200)] 
patch 9.0.1858: [security] heap use after free in ins_compl_get_exp()

Problem:  heap use after free in ins_compl_get_exp()
Solution: validate buffer before accessing it

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1857: [security] heap-use-after-free in is_qf_win() v9.0.1857
Christian Brabandt [Sun, 3 Sep 2023 18:20:52 +0000 (20:20 +0200)] 
patch 9.0.1857: [security] heap-use-after-free in is_qf_win()

Problem:  heap-use-after-free in is_qf_win()
Solution: Check buffer is valid before accessing it

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1856: issues with formatting positional arguments v9.0.1856
Christ van Willegen [Sun, 3 Sep 2023 15:22:37 +0000 (17:22 +0200)] 
patch 9.0.1856: issues with formatting positional arguments

Problem:  issues with formatting positional arguments
Solution: fix them, add tests and documentation

closes: #12140
closes: #12985

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
Tentatively fix message_test. Check NULL ptr.

2 years agopatch 9.0.1855: mode() doesn't indicate command line for terminal v9.0.1855
h-east [Sun, 3 Sep 2023 15:12:55 +0000 (17:12 +0200)] 
patch 9.0.1855: mode() doesn't indicate command line for terminal

Problem:  mode() doesn't indicate command line for terminal
Solution: make it return 'ct' for command-line from Terminal mode

closes: #6265
closes: #13017
closes: #13018

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: h-east <h.east.727@gmail.com>
2 years agopatch 9.0.1854: test_crash1() fails on CI v9.0.1854
Christian Brabandt [Sun, 3 Sep 2023 07:23:12 +0000 (09:23 +0200)] 
patch 9.0.1854: test_crash1() fails on CI

Problem:  test_crash1() fails on CI
Solution: don't run Screendump test, verify that it doesn't crash
          by running it through a shell command line, testing
          the exit value and concatenating success cmd using '&&'

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1853: CI error on different signedness in regexp.c v9.0.1853
Christian Brabandt [Sat, 2 Sep 2023 20:08:43 +0000 (22:08 +0200)] 
patch 9.0.1853: CI error on different signedness in regexp.c

Problem:  CI error on different signedness in regexp.c
          (after patch 9.0.1848)
Solution: Cast strlen() call to int

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1852: i_CTRL-O does not reset Select Mode v9.0.1852
pierreganty [Sat, 2 Sep 2023 19:59:52 +0000 (21:59 +0200)] 
patch 9.0.1852: i_CTRL-O does not reset Select Mode

Problem:  i_CTRL-O does not reset Select Mode
Solution: Reset select mode on CTRL-O in insert mode

closes: #13001
closes: #12115

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1851: breakindent missing by virt text v9.0.1851
zeertzjq [Sat, 2 Sep 2023 19:55:00 +0000 (21:55 +0200)] 
patch 9.0.1851: breakindent missing by virt text

Problem:  Virtual text at a column causes 'breakindent' and 'showbreak'
          to be missing (after patch 9.0.1124).
Solution: Add check for "tp_col" in another place where TP_FLAG_WRAP is
          checked.

closes: #12769
closes: #13008
closes: #13010

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1850: Vim9: wrong line number where options set v9.0.1850
LemonBoy [Sat, 2 Sep 2023 19:52:05 +0000 (21:52 +0200)] 
patch 9.0.1850: Vim9: wrong line number where options set

Problem:  Vim9: wrong line number where options set
Solution: Set source line number earlier

closes: #13006
closes: #13013

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: LemonBoy <thatlemon@gmail.com>
2 years agopatch 9.0.1849: CI error on different signedness in ex_cmds.c v9.0.1849
Christian Brabandt [Sat, 2 Sep 2023 19:48:46 +0000 (21:48 +0200)] 
patch 9.0.1849: CI error on different signedness in ex_cmds.c

Problem:  CI error on different signedness
Solution: cast unsigned to int

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1848: [security] buffer-overflow in vim_regsub_both() v9.0.1848
Christian Brabandt [Sat, 2 Sep 2023 19:15:52 +0000 (21:15 +0200)] 
patch 9.0.1848: [security] buffer-overflow in vim_regsub_both()

Problem:  buffer-overflow in vim_regsub_both()
Solution: Check remaining space

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1847: [security] potential oob write in do_addsub() v9.0.1847
Christian Brabandt [Sat, 2 Sep 2023 17:43:33 +0000 (19:43 +0200)] 
patch 9.0.1847: [security] potential oob write in do_addsub()

Problem:  potential oob write in do_addsub()
Solution: don't overflow buf2, check size in for loop()

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1846: [security] crash in fullcommand v9.0.1846
Christian Brabandt [Sat, 2 Sep 2023 17:30:03 +0000 (19:30 +0200)] 
patch 9.0.1846: [security] crash in fullcommand

Problem:  crash in fullcommand
Solution: Check for typeval correctly

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1845: xxd: Test_xxd_color start failing v9.0.1845
Christian Brabandt [Sat, 2 Sep 2023 17:12:31 +0000 (19:12 +0200)] 
patch 9.0.1845: xxd: Test_xxd_color start failing

Problem:  xxd: Test_xxd_color start failing
Solution: Revert changes to dump file

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1844: doc helptags may not be up to date v9.0.1844
Yee Cheng Chin [Sat, 2 Sep 2023 14:03:04 +0000 (16:03 +0200)] 
patch 9.0.1844: doc helptags may not be up to date

Problem:  doc helptags may not be up to date
Solution: Add CI jobs to verify helptags are updated

Also, re-generate the tags file with updated list so it will pass CI.

closes: #13012

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1843: xxd color test flaky v9.0.1843
Christian Brabandt [Sat, 2 Sep 2023 14:01:18 +0000 (16:01 +0200)] 
patch 9.0.1843: xxd color test flaky

Problem:  xxd color test flaky
Solution: Filter unneeded lines

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agotranslation(it): updated Italian xxd manpage
Antonio Giovanni Colombo [Sat, 2 Sep 2023 13:11:58 +0000 (15:11 +0200)] 
translation(it): updated Italian xxd manpage

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1842: Need more accurate profiling v9.0.1842
Ernie Rael [Sat, 2 Sep 2023 13:09:18 +0000 (15:09 +0200)] 
patch 9.0.1842: Need more accurate profiling

Problem:  Need more accurate profiling
Solution: Improve profiling results

closes: #12192

Reduce overhead of checking if a function should be profiled,
by caching results of checking (which are done with regexp).

Cache uf_hash for uf_name in ufunc_T.

Cache cleared when regexps are changed.

Break at first match for has_profiling lookup.

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ernie Rael <errael@raelity.com>
2 years agopatch 9.0.1841: style: trailing whitespace in ex_cmds.c v9.0.1841
Christian Brabandt [Sat, 2 Sep 2023 13:07:24 +0000 (15:07 +0200)] 
patch 9.0.1841: style: trailing whitespace in ex_cmds.c

Problem:  style: trailing whitespace in ex_cmds.c
Solution: remove it

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agotranslation(en_GB): Update UK English translation (#13011)
Mike Williams [Sat, 2 Sep 2023 13:04:51 +0000 (14:04 +0100)] 
translation(en_GB): Update UK English translation (#13011)

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1840: [security] use-after-free in do_ecmd v9.0.1840
Christian Brabandt [Sat, 2 Sep 2023 12:40:13 +0000 (14:40 +0200)] 
patch 9.0.1840: [security] use-after-free in do_ecmd

Problem:  use-after-free in do_ecmd
Solution: Verify oldwin pointer after reset_VIsual()

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agoruntime(zserio): add zserio syntax (#13005)
Dominique Pellé [Fri, 1 Sep 2023 21:10:26 +0000 (23:10 +0200)] 
runtime(zserio): add zserio syntax (#13005)

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1839: No Makefile rule to build cscope database v9.0.1839
Christian Brabandt [Fri, 1 Sep 2023 20:38:26 +0000 (22:38 +0200)] 
patch 9.0.1839: No Makefile rule to build cscope database

Problem:  No Makefile rule to build cscope database
Solution: Add rule

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agotranslation(it): updated Italian translation + xxd manpage
Antonio Giovanni Colombo [Fri, 1 Sep 2023 20:18:31 +0000 (22:18 +0200)] 
translation(it): updated Italian translation + xxd manpage

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1838: Vim9: Cannot modify class member vars from def function v9.0.1838
Yegappan Lakshmanan [Fri, 1 Sep 2023 20:05:45 +0000 (22:05 +0200)] 
patch 9.0.1838: Vim9: Cannot modify class member vars from def function

Problem:  Vim9: Cannot modify class member vars from def function
Solution: Add support for modifying class member variables from a def
          function

closes: #12995

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2 years agotests: Improve the codestyle test (#12988)
Christian Brabandt [Fri, 1 Sep 2023 16:58:35 +0000 (17:58 +0100)] 
tests: Improve the codestyle test (#12988)

Improve it by the following:

1) Also check xxd source
2) Test_source_files():
   don't stop on the first error found, continue until the
   end of the file and report all found errors like this:

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1837: Vim9: class_member_type() can be optimized v9.0.1837
Ernie Rael [Fri, 1 Sep 2023 16:54:54 +0000 (18:54 +0200)] 
patch 9.0.1837: Vim9: class_member_type() can be optimized

Problem:  Vim9: class_member_type() can be optimized
Solution: class_member_type() provides more information;
          safe an additional alloc()/free()

closes: #12989

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ernie Rael <errael@raelity.com>
2 years agoFix menu localization not updated for "Open Tab..." item (#12993)
Yee Cheng Chin [Fri, 1 Sep 2023 16:53:30 +0000 (09:53 -0700)] 
Fix menu localization not updated for "Open Tab..." item (#12993)

THe menu item "Open Tab..." was changed to "Open &Tab..." in #12895 but
localization files were not updated. Update it here.

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1836: display wrong with virttext, linebreak and breakindent v9.0.1836
zeertzjq [Fri, 1 Sep 2023 16:49:30 +0000 (18:49 +0200)] 
patch 9.0.1836: display wrong with virttext, linebreak and breakindent

Problem:  Wrong display with "above" virtual text and 'linebreak' or
          'breakindent' and 'showbreak'.
Solution: Exclude size of "above" virtual text when calculating them.

closes: #13000

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1835: Perl interface has problems with load PL_current_context v9.0.1835
Yee Cheng Chin [Fri, 1 Sep 2023 16:46:17 +0000 (18:46 +0200)] 
patch 9.0.1835: Perl interface has problems with load PL_current_context

Problem:  Perl interface has problems with load PL_current_context
Solution: Fix Perl interface to load PL_current_context from library

In #12914, in order to fix an issue with Perl 5.36 dynamic builds, (that
version introduced a thread-local `PL_current_context`), the file added
the variable manually so we can satisfy the linker. However, the
variable is a different one from the one in the library, so there could
be unpredictable behavior. Instead, just use `dlsym` to load the context
from the library. The fact that it's thread-local doesn't matter too
much to us because Vim's interface is single-threaded so it will work
properly.

closes: #12996

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
2 years agopatch 9.0.1834: Some problems with xxd coloring v9.0.1834
K.Takata [Fri, 1 Sep 2023 16:41:04 +0000 (18:41 +0200)] 
patch 9.0.1834: Some problems with xxd coloring

Problem:  Some problems with xxd coloring
Solution: Fix the following problems:

* Support colored output on Windows.
  SetConsoleMode() is required to enable ANSI color sequences.
* Support "NO_COLOR" environment variable.
  If "NO_COLOR" is defined and not empty, colored output should be
  disabled.
  See https://no-color.org/
* "-R" should only accept "always", "never" or "auto" as the parameter.
* Adjust help and documentation. "-R" cannot omit the parameter. Remove
  surrounding brackets.

Related #12131
closes: #12997
closes: #12991
closes: #12986

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: K.Takata <kentkt@csc.jp>
2 years agoruntime(ruby): Update syntax, indent and ftplugin files
Doug Kearns [Fri, 1 Sep 2023 16:33:33 +0000 (18:33 +0200)] 
runtime(ruby): Update syntax, indent and ftplugin files

While making changes to the ruby ftplugin, slightly change the exepath()
conditional from patch 9.0.1833 and move it after the :cd invocation.

closes: 12981
closes: 12994

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Tim Pope <code@tpope.net>
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
2 years agopatch 9.0.1833: [security] runtime file fixes v9.0.1833
Christian Brabandt [Thu, 31 Aug 2023 21:52:30 +0000 (23:52 +0200)] 
patch 9.0.1833: [security] runtime file fixes

Problem:  runtime files may execute code in current dir
Solution: only execute, if not run from current directory

The perl, zig and ruby filetype plugins and the zip and gzip autoload
plugins may try to load malicious executable files from the current
working directory.  This is especially a problem on windows, where the
current directory is implicitly in your $PATH and windows may even run a
file with the extension `.bat` because of $PATHEXT.

So make sure that we are not trying to execute a file from the current
directory. If this would be the case, error out (for the zip and gzip)
plugins or silently do not run those commands (for the ftplugins).

This assumes, that only the current working directory is bad. For all
other directories, it is assumed that those directories were
intentionally set to the $PATH by the user.

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1832: xxd: reporting wrong version v9.0.1832
Christian Brabandt [Thu, 31 Aug 2023 19:03:02 +0000 (21:03 +0200)] 
patch 9.0.1832: xxd: reporting wrong version

Problem:  xxd: reporting wrong version (after 9.0.1827)
Solution: Update version string

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1831: Vim9: failing null test v9.0.1831
Gianmaria Bajo [Thu, 31 Aug 2023 18:55:35 +0000 (20:55 +0200)] 
patch 9.0.1831: Vim9: failing null test

Problem:  Vim9: failing null test
Solution: Use required public keyword

closes: #12982

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Gianmaria Bajo <mg1979.git@gmail.com>
2 years agopatch 9.0.1830: Vim9: crash when accessing a null object v9.0.1830
Gianmaria Bajo [Thu, 31 Aug 2023 16:15:26 +0000 (18:15 +0200)] 
patch 9.0.1830: Vim9: crash when accessing a null object

Problem:  Vim9: crash when accessing a null object
Solution: Check accessing a NULL object in def function

An object is NULL when the variable is declared, but the constructor
isn't called. Accessing/setting a member on the object crashed Vim.

Note: this happens inside def functions, at script level things work
differently. Accessing a NULL object member results in E1360
(correctly), while setting a value on it results in E1012 (type
mismatch) so there's still something to fix.

closes: #12973

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Gianmaria Bajo <mg1979.git@gmail.com>
2 years agopatch 9.0.1829: Vim9 missing access-checks for private vars v9.0.1829
Yegappan Lakshmanan [Thu, 31 Aug 2023 16:10:46 +0000 (18:10 +0200)] 
patch 9.0.1829: Vim9 missing access-checks for private vars

Problem:  Vim9 missing access-checks for private vars
Solution: Use the proper check for private/readonly variable.  Access
          level for a member cannot be changed in a class implementing an
          interface.  Update the code indentation

closes: #12978

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Co-authored-by: Ernie Rael <errael@raelity.com>
2 years agopatch 9.0.1828: cursor wrong with virt text before double-width char v9.0.1828
zeertzjq [Thu, 31 Aug 2023 16:07:30 +0000 (18:07 +0200)] 
patch 9.0.1828: cursor wrong with virt text before double-width char

Problem:  Wrong cursor position with virtual text before double-width
          char at window edge.
Solution: Check for double-width char before adding virtual text size.

closes: #12977

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agotranslation(it): updated Italian manpages
Antonio Giovanni Colombo [Thu, 31 Aug 2023 16:03:11 +0000 (18:03 +0200)] 
translation(it): updated Italian manpages

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1827: xxd: no color support v9.0.1827
Aapo Rantalainen [Thu, 31 Aug 2023 15:58:13 +0000 (17:58 +0200)] 
patch 9.0.1827: xxd: no color support

Problem:  xxd: no color support
Solution: Add color support using xxd -R

Add some basic color support for xxd

The hex-value and value are both colored with the same color depending
on the hex-value, e.g.:

    0x00 = white
    0xff = blue
    printable = green
    non-printable = red
    tabs and linebreaks = yellow

Each character needs 11 more bytes to contain color. (Same color in a
row could contain only one overhead but the logic how xxd creates colums
must be then changed.) Size of colored output is increased by factor of
~6. Also grepping the output will break when colors is used.

Flag for color is "-R", because less uses "-R".

Color uses parameters auto,always,never same as less and grep (among
others).

E.g.

xxd -R always $FILE | less -R

Add some screen-tests (that currently on work on linux) to verify the
feature works as expected.

closes: #12131

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Aapo Rantalainen <aapo.rantalainen@gmail.com>
2 years agoruntime(optwin): Fix for 'splitkeep' option (#12974)
xrandomname [Thu, 31 Aug 2023 06:18:40 +0000 (06:18 +0000)] 
runtime(optwin): Fix for 'splitkeep' option (#12974)

'spk' was used as a boolean, rather than a string option.

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agoruntime(forth): Update syntax and ftplugin files (#12976)
dkearns [Thu, 31 Aug 2023 06:17:16 +0000 (16:17 +1000)] 
runtime(forth): Update syntax and ftplugin files (#12976)

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1826: keytrans() doesn't translate recorded key typed in a GUI v9.0.1826
zeertzjq [Wed, 30 Aug 2023 17:38:24 +0000 (19:38 +0200)] 
patch 9.0.1826: keytrans() doesn't translate recorded key typed in a GUI

Problem:  keytrans() doesn't translate recorded key typed in a GUI
Solution: Handle CSI like K_SPECIAL, like in mb_unescape()

closes: #12964
closes: #12966

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1825: wrong cursor position with virt text and 'linebreak' v9.0.1825
zeertzjq [Wed, 30 Aug 2023 14:55:09 +0000 (16:55 +0200)] 
patch 9.0.1825: wrong cursor position with virt text and 'linebreak'

Problem:  Wrong cursor position with virtual text before a whitespace
          character and 'linebreak'.
Solution: Always set "col_adj" to "size - 1" and apply 'linebreak' after
          adding the size of 'breakindent' and 'showbreak'.

closes: #12956

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1824: Vim9: private members may be modifiable v9.0.1824
Yegappan Lakshmanan [Wed, 30 Aug 2023 14:38:26 +0000 (16:38 +0200)] 
patch 9.0.1824: Vim9: private members may be modifiable

Problem:  Vim9: private members may be modifiable
Solution: prevent modification for def function

closes: #12963

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2 years agoruntime: cleanup :Sman command via the undo_ftplugin mechanism (#12967)
Enno [Wed, 30 Aug 2023 14:37:05 +0000 (16:37 +0200)] 
runtime: cleanup :Sman command via the undo_ftplugin mechanism (#12967)

Regards to @dkearns as noticed in
https://github.com/vim/vim/commit/2ac708b548660b232a32c52d89bde3d8596646c0

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1823: Autoconf 2.69 too old v9.0.1823
Illia Bobyr [Wed, 30 Aug 2023 14:30:15 +0000 (16:30 +0200)] 
patch 9.0.1823: Autoconf 2.69 too old

Problem:  Autoconf 2.69 too old
Solution: Migrate to Autoconf 2.71

Autoconf 2.69 is almost 10 years old.  And 2.71 is also a few years old
as well.  Should be pretty well tested by now.  It brings a lot of
improvements and there seems to be an ongoing work on autoconf 2.72
already.

This change just addresses two minor changes `autoupdate` suggested, and
then `src/auto/configure` is regenerated by running

  cd src
  make AUTOCONF=autoconf2.71 autoconf

closes: #12958

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Illia Bobyr <illia.bobyr@gmail.com>
2 years agopatch 9.0.1822: Vim9: no check for duplicate members in extended classes v9.0.1822
Yegappan Lakshmanan [Tue, 29 Aug 2023 20:32:02 +0000 (22:32 +0200)] 
patch 9.0.1822: Vim9: no check for duplicate members in extended classes

Problem:  Vim9: no check for duplicate members in extended classes
Solution: Check for duplicate members in extended classes.
          Fix memory leak.

closes: #12948

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2 years agopatch 9.0.1821: Vim9 constructors are always static v9.0.1821
Gianmaria Bajo [Tue, 29 Aug 2023 20:26:30 +0000 (22:26 +0200)] 
patch 9.0.1821: Vim9 constructors are always static

Problem:  Vim9 constructors are always static
Solution: make the "static" keyword an error

closes: #12945

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Gianmaria Bajo <mg1979.git@gmail.com>
2 years agoruntime(sh): Update ftplugin (#12950)
dkearns [Tue, 29 Aug 2023 20:24:37 +0000 (06:24 +1000)] 
runtime(sh): Update ftplugin (#12950)

Remove :Help command via the undo_ftplugin mechanism.

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1820: Rexx files may not be recognised v9.0.1820
Doug Kearns [Tue, 29 Aug 2023 20:21:35 +0000 (22:21 +0200)] 
patch 9.0.1820: Rexx files may not be recognised

Problem:  Rexx files may not be recognised
Solution: Add shebang detection and improve disambiguation of *.cls
  files

closes: #12951

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
2 years agopatch 9.0.1819: Github CI too complex v9.0.1819
ichizok [Tue, 29 Aug 2023 20:16:34 +0000 (22:16 +0200)] 
patch 9.0.1819: Github CI too complex

Problem:  Github CI too complex
Solution: CI: Tidy up matrix

Perform the following changes to the CI configuration:
 - Move common CFLAGS to ci/config.mk.sed
 - Change extra key to array to able to assign no or multiple values
   explicitly
 - Modify luaver variable handling
   - lib${{ matrix.luaver }}-dev ${{ matrix.luaver }} are confusing
     as package names
 - Deduplicate CONFOPT setting

closes: #12955

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: ichizok <gclient.gaap@gmail.com>
2 years agoruntime(heex): Add HEEX comments to match_words in ftplugin (#12957)
Jason King [Tue, 29 Aug 2023 20:11:55 +0000 (15:11 -0500)] 
runtime(heex): Add HEEX comments to match_words in ftplugin (#12957)

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1818: dynamically linking perl is broken v9.0.1818
Christian Brabandt [Tue, 29 Aug 2023 19:31:28 +0000 (21:31 +0200)] 
patch 9.0.1818: dynamically linking perl is broken

Problem:  dynamically linking perl is broken
Solution: Fix all issues

This is a combination of several commits:

1) Fix if_perl.xs not being able to build on all versions of Perl (5.30)

This fixes the dynamic builds of Perl interface. The Perl interface file
previously had to manually copy and paste misc inline functions verbatim
from the Perl headers, because we defined `PERL_NO_INLINE_FUNCTIONS`
which prevents us form getting some function definitions. The original
reason we defined it was because those inline functions would reference
Perl functions that would cause linkage errors.

This is a little fragile as every time a new version of Perl comes out,
we inevitably have to copy over new versions of inline functions to our
file, and it's also easy to miss updates to existing functions.

Instead, remove the `PERL_NO_INLINE_FUNCTIONS` define, remove the manual
copy-pasted inline functions. Simply add stub implementations of the
missing linked functions like `Perl_sv_free2` and forward them to the
DLL version of the function at runtime. There are only a few functions
that need this treatment, and it's a simple stub so there is very low
upkeep compared to copying whole implementations to the file.

Also, fix the configure script so that if we are using dynamic linkage,
we don't pass `-lperl` to the build flags, to avoid accidental external
linkage while using dynamic builds. This is similar to how Python
integration works.

2) Fix GIMME_V deprecation warnings in Perl 5.38

Just use GIMME_V, and only use GIMME when using 5.30 to avoid needing to
link Perl_block_gimme. We could provide a stub like the other linked
functions like Perl_sv_free2, but simply using GIMME is the simplest and
it has always worked before.

3) Fix Perl 5.38 issues

Fix two issues:

3.1. Perl 5.38 links against more functions in their inline headers, so we
   need to stub them too.

3.2. Perl 5.38 made Perl_get_context an inline function, but *only* for
   non-Windows build. Fix that. Note that this was happening in Vim
   currently, as it would build, but fail to run Perl code at runtime.

4) Fix Perl 5.36/5.38 when thread local is used

Perl 5.36 introduced using `_Thread_local` for the current context,
which causes inline functions to fail. Create a stub
`PL_current_context` thread local variable to satisfy the linker for
inlined functions. Note that this is going to result in a different
`PL_current_context` being used than the one used in the library, but so
far from testing it seems to work.

5) Add docs for how to build Perl for dynamic linking to work

closes: #12827
closes: #12914

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
2 years agopatch 9.0.1817: configure: using obsolete AC_HEADER_STDC v9.0.1817
Illia Bobyr [Tue, 29 Aug 2023 19:16:29 +0000 (21:16 +0200)] 
patch 9.0.1817: configure: using obsolete AC_HEADER_STDC

Problem:  configure: using obsolete AC_HEADER_STDC
Solution: Remove it and re-create configure

closes: #12949

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Illia Bobyr <illia.bobyr@gmail.com>
2 years agopatch 9.0.1816: configure: sed uses non-portable regex v9.0.1816
ichizok [Tue, 29 Aug 2023 18:54:32 +0000 (20:54 +0200)] 
patch 9.0.1816: configure: sed uses non-portable regex

Problem:  configure: sed uses non-portable regex
Solution: use '*' modifier instead of '\?' in regex
          for luajit version detection

closes: #12954

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: ichizok <gclient.gaap@gmail.com>
2 years agoruntime(doc): mention special case of i_CTRL-R_-
Christian Brabandt [Tue, 29 Aug 2023 14:22:38 +0000 (16:22 +0200)] 
runtime(doc): mention special case of i_CTRL-R_-

closes: #12947
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agoruntime(editorconfig): generate helptags, remove unused files
Christian Brabandt [Tue, 29 Aug 2023 13:42:31 +0000 (15:42 +0200)] 
runtime(editorconfig): generate helptags, remove unused files

Remove the test suite and a few other non-used files from the
EditorConfig CI project

related: #12902
closes:  #12941

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agoruntime(tags): update helptags
Christian Brabandt [Mon, 28 Aug 2023 19:45:16 +0000 (21:45 +0200)] 
runtime(tags): update helptags

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agoruntime: Set b:undo_indent where missing (#12944)
dkearns [Mon, 28 Aug 2023 19:32:59 +0000 (05:32 +1000)] 
runtime: Set b:undo_indent where missing (#12944)

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agoruntime: Set b:undo_ftplugin where missing (#12943)
dkearns [Mon, 28 Aug 2023 19:32:27 +0000 (05:32 +1000)] 
runtime: Set b:undo_ftplugin where missing (#12943)

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1815: pango_coverage_unref() deprecated in pango > 1.51 v9.0.1815
James McCoy [Mon, 28 Aug 2023 19:29:13 +0000 (21:29 +0200)] 
patch 9.0.1815: pango_coverage_unref() deprecated in pango > 1.51

Problem:  pango_coverage_unref() deprecated in pango > 1.51
Solution: use g_object_unref() instead

closes: #12942

Free PangoCoverage with g_object_unref for Pango >= 1.52

pango_coverage_unref was declared deprecated in Pango 1.52.0 in favor of
g_object_unref.  Adjust the call when building against a new enough
Pango to avoid the deprecation warning.

Signed-off-by: James McCoy <jamessan@jamessan.com>
Co-authored-by: James McCoy <jamessan@jamessan.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1814: Vim9 no error on duplicate object member var v9.0.1814
Yegappan Lakshmanan [Mon, 28 Aug 2023 19:26:23 +0000 (21:26 +0200)] 
patch 9.0.1814: Vim9 no error on duplicate object member var

Problem:  Vim9 no error on duplicate object member var
Solution: detect duplicate members and error out

closes: #12938

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2 years agopatch 9.0.1813: linebreak incorrect drawn with breakindent v9.0.1813
zeertzjq [Mon, 28 Aug 2023 19:20:16 +0000 (21:20 +0200)] 
patch 9.0.1813: linebreak incorrect drawn with breakindent

Problem: 'linebreak' is incorrectly drawn after 'breakindent'.
Solution: Don't include 'breakindent' size when already after it.

closes: #12937
closes: #12940

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1812: CI still fails with sodium_mlock error() v9.0.1812
Christian Brabandt [Mon, 28 Aug 2023 19:17:36 +0000 (21:17 +0200)] 
patch 9.0.1812: CI still fails with sodium_mlock error()

Problem:  CI still fails with sodium_mlock error()
Solution: Catch and ignore E1230 error in test_crypt

closes: #12939

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1811: still some issues with term_debug test v9.0.1811
Yegappan Lakshmanan [Sun, 27 Aug 2023 19:59:54 +0000 (21:59 +0200)] 
patch 9.0.1811: still some issues with term_debug test

Problem:  still some issues with term_debug test
Solution: Use WaitForAssert()

closes: #12936

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2 years agopatch 9.0.1810: camel-case spelling has issues with digits v9.0.1810
LemonBoy [Sun, 27 Aug 2023 19:52:27 +0000 (21:52 +0200)] 
patch 9.0.1810: camel-case spelling has issues with digits

Problem:  camel-case spelling has issues with digits
Solution: Improve the camCase spell checking by taking digits
          and caps into account

Rewrite the conditions to check for word boundaries by taking into
account the presence of digits and all-caps sequences such as acronyms.

closes: #12644
closes: #12933

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: LemonBoy <thatlemon@gmail.com>
2 years agopatch 9.0.1809: termdebug test flayk v9.0.1809
Christian Brabandt [Sun, 27 Aug 2023 19:48:29 +0000 (21:48 +0200)] 
patch 9.0.1809: termdebug test flayk

Problem:  termdebug test flayk
Solution: wait slightly longer

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1808: termdebug: Typo in termdebug test v9.0.1808
Christian Brabandt [Sun, 27 Aug 2023 17:59:28 +0000 (19:59 +0200)] 
patch 9.0.1808: termdebug: Typo in termdebug test

Problem:  termdebug: Typo in termdebug test
Solution: fix the typos

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1807: runtime: crystal scripts not recognised v9.0.1807
Doug Kearns [Sun, 27 Aug 2023 17:51:37 +0000 (19:51 +0200)] 
patch 9.0.1807: runtime: crystal scripts not recognised

Problem:  runtime: crystal scripts not recognised
Solution: Filetype detect Crystal scripts by shebang line

closes: #12935

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
2 years agoruntime: Remove outdated scripts.vim comment (#12934)
dkearns [Sun, 27 Aug 2023 17:47:29 +0000 (03:47 +1000)] 
runtime: Remove outdated scripts.vim comment (#12934)

Problem:  Comment in scripts.vim is outdated
Solution: Delete the comment

runtime/autoload/dist/script.vim is now Vim9 script so =~ does not use
'ignorecase'.

Signed-off-by: Christian Brabandt <cb@256bit.org>