]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
7 months agoruntime(doc): Add a note about handling symbolic links in starting.txt
h-east [Thu, 19 Dec 2024 19:51:36 +0000 (20:51 +0100)] 
runtime(doc): Add a note about handling symbolic links in starting.txt

closes: #16257

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0949: popups inconsistently shifted to the left v9.1.0949
Boris Staletic [Thu, 19 Dec 2024 19:22:19 +0000 (20:22 +0100)] 
patch 9.1.0949: popups inconsistently shifted to the left

Problem:  popups inconsistently shifted to the left
Solution: always shift non-fixed popups to the left when the
          text would be truncated
          (no matter whether 'wrap' is set or not)
          (Boris Staletic)

fixes: #16231
closes: #16247

Signed-off-by: Boris Staletic <boris.staletic@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agogit: ignore reformatting change of netrw plugin
Christian Brabandt [Thu, 19 Dec 2024 19:17:17 +0000 (20:17 +0100)] 
git: ignore reformatting change of netrw plugin

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(netrw): change indent size from 1 to 2
Luca Saccarola [Thu, 19 Dec 2024 19:16:18 +0000 (20:16 +0100)] 
runtime(netrw): change indent size from 1 to 2

closes: #16248

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0948: Missing cmdline completion for :pbuffer v9.1.0948
zeertzjq [Thu, 19 Dec 2024 19:05:28 +0000 (20:05 +0100)] 
patch 9.1.0948: Missing cmdline completion for :pbuffer

Problem:  Missing cmdline completion for :pbuffer.
Solution: Add cmdline completion for :pbuffer like :buffer.
          (zeertzjq)

fixes: #16250
closes: #16251

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(tutor): Reformat tutor1
Ken Takata [Thu, 19 Dec 2024 19:03:10 +0000 (20:03 +0100)] 
runtime(tutor): Reformat tutor1

* Fix lesson number.
* Fold a long line.
* Adjust newlines.

  It seems that each lesson is written in 23 lines to fit the 80x25
  monitor.

closes: #16253

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0947: short-description v9.1.0947
Yegappan Lakshmanan [Thu, 19 Dec 2024 19:00:31 +0000 (20:00 +0100)] 
patch 9.1.0947: short-description

Problem:  Coverity comlains about un-initialized var
          (after v9.1.0943)
Solution: initialize variable (Yegappan Lakshmanan)

closes: #16256

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0946: cross-compiling fails on osx-arm64 v9.1.0946
Brandon Maier [Wed, 18 Dec 2024 20:18:01 +0000 (21:18 +0100)] 
patch 9.1.0946: cross-compiling fails on osx-arm64

Problem:  cross-compiling fails on osx-arm64
Solution: use vim_cv_timer_create_with_lrt() instead of
          vim_cv_timer_create_works() (Brandon Maier)

Cross-compiling to osx-arm64 fails with the following

  In file included from json.c:17:
  In file included from ./vim.h:457:
  ./macros.h:304:24: error: expected identifier or '('
    304 |      static inline int isnan(double x)
        |                        ^
  .../MacOSX11.0.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
    165 |     ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))
        |       ^

This can be traced back to ./configure incorrectly detecting the
compiler support for `isnan()`, from the config.log:

  configure:14567: checking for isnan()
  configure:14588: arm64-apple-darwin20.0.0-clang <...> -L$PREFIX/lib conftest.c  -lncurses -ltinfo -lrt >&5
  ld: library not found for -lrt
  arm64-apple-darwin20.0: error: linker command failed with exit code 1 (use -v to see invocation)

The `-lrt` linking is added by ./configure script when it detects
compiler support for `timer_create()`. On the osx-arm64 platform
`timer_create()` works but does not link with `-lrt`. This results in
the following settings from config.log:

  vim_cv_timer_create=yes
  vim_cv_timer_create_with_lrt=no
  vim_cv_timer_create_works=yes

But the configure.ac incorrectly uses `timer_create_works` to add
`-lrt`, instead of using `timer_create_with_lrt`.

fixes: https://github.com/conda-forge/vim-feedstock/pull/1664
closes: #16242

Signed-off-by: Brandon Maier <brandon.maier@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0945: ComplMatchIns highlight doesn't end after inserted text v9.1.0945
zeertzjq [Wed, 18 Dec 2024 20:12:25 +0000 (21:12 +0100)] 
patch 9.1.0945: ComplMatchIns highlight doesn't end after inserted text

Problem:  ComplMatchIns highlight doesn't end after inserted text.
Solution: Handle ComplMatchIns highlight more like search highlight.
          Fix off-by-one error. Handle deleting text properly.
          (zeertzjq)

closes: #16244

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agotranslation(sv): re-include the change from #16240
Fredrik [Wed, 18 Dec 2024 20:09:27 +0000 (21:09 +0100)] 
translation(sv): re-include the change from #16240

related: #16240

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0944: tests: test_registers fails when not run under X11 v9.1.0944
Christian Brabandt [Wed, 18 Dec 2024 19:38:55 +0000 (20:38 +0100)] 
patch 9.1.0944: tests: test_registers fails when not run under X11

Problem:  tests: test_registers fails when not run under X11
Solution: filter out warning message

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0943: Vim9: vim9compile.c can be further improved v9.1.0943
Yegappan Lakshmanan [Wed, 18 Dec 2024 19:16:20 +0000 (20:16 +0100)] 
patch 9.1.0943: Vim9: vim9compile.c can be further improved

Problem:  vim9compile.c can be further improved
Solution: Refactor the compile_lhs function
          (Yegappan Lakshmanan)

closes: #16245

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(doc): Update README and mention make check to verify
Christian Brabandt [Wed, 18 Dec 2024 19:13:46 +0000 (20:13 +0100)] 
runtime(doc): Update README and mention make check to verify

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agotranslation(sv): partly revert commit 98874dca6d0b60ccd6fc3a140b3ec
Christian Brabandt [Wed, 18 Dec 2024 19:01:29 +0000 (20:01 +0100)] 
translation(sv): partly revert commit 98874dca6d0b60ccd6fc3a140b3ec

This partly reverts commit 98874dca6d0b60ccd6fc3a140b3ec1cc3e560f95,
but keeps the added changes from #16240, since the re-generated sv.po
file fails the Vim check.vim script in the CI test suite.

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(vim): update base-syntax after v9.1.0936
Christian Brabandt [Tue, 17 Dec 2024 19:59:35 +0000 (20:59 +0100)] 
runtime(vim): update base-syntax after v9.1.0936

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0942: a few typos were found v9.1.0942
zeertzjq [Tue, 17 Dec 2024 19:55:13 +0000 (20:55 +0100)] 
patch 9.1.0942: a few typos were found

Problem:  a few typos were found
Solution: fix them (zeertzjq)

closes: #16232

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0941: ComplMatchIns doesn't work after multibyte chars v9.1.0941
zeertzjq [Tue, 17 Dec 2024 19:50:19 +0000 (20:50 +0100)] 
patch 9.1.0941: ComplMatchIns doesn't work after multibyte chars

Problem:  ComplMatchIns doesn't work after multibyte chars
          (after v9.1.0936)
Solution: Use (ptr - line) instead of wlv.col (zeertzjq).

closes: #16233

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(doc): Fix style in fold.txt
h-east [Tue, 17 Dec 2024 19:48:42 +0000 (20:48 +0100)] 
runtime(doc): Fix style in fold.txt

closes: #16236

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoci: Update macOS from macos-14 to macos-15
Yee Cheng Chin [Tue, 17 Dec 2024 19:36:10 +0000 (20:36 +0100)] 
ci: Update macOS from macos-14 to macos-15

Make sure to use the latest Xcode (16.2) which contains fixes in the
compiler, as GitHub Actions defaults to using 16.0 still. See #15764.

closes: #16239

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agotranslation(sv): Fix typo in Swedish translation
Fredrik [Tue, 17 Dec 2024 19:31:37 +0000 (20:31 +0100)] 
translation(sv): Fix typo in Swedish translation

- "kind file" not as opposed to unkind, but two separate columns

- also regenerate sv.po

fixes: #16237
closes: #16240

Signed-off-by: Fredrik <fredrik.oljemark@helsinki.fi>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0940: Wrong cursor shape with "gq" and 'indentexpr' executes :normal v9.1.0940
zeertzjq [Tue, 17 Dec 2024 19:26:45 +0000 (20:26 +0100)] 
patch 9.1.0940: Wrong cursor shape with "gq" and 'indentexpr' executes :normal

Problem:  Wrong cursor shape with "gq" and 'indentexpr' executes :normal
Solution: Update cursor and mouse shape after restoring old_State.
          (zeertzjq)

closes: #16241

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Solution: Update cursor and mouse shape after restoring old_State.

7 months agoruntime(doc): fix some small errors
Christian Brabandt [Tue, 17 Dec 2024 19:24:24 +0000 (20:24 +0100)] 
runtime(doc): fix some small errors

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0939: make installtutor fails v9.1.0939
Christian Brabandt [Tue, 17 Dec 2024 19:16:58 +0000 (20:16 +0100)] 
patch 9.1.0939: make installtutor fails

Problem:  make installtutor fails
          (Antonio Giovanni Colombo, after v9.1.0932)
Solution: Fix Makefile rule

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0938: exclusive selection not respected when re-selecting block mode v9.1.0938
Christian Brabandt [Mon, 16 Dec 2024 21:49:15 +0000 (22:49 +0100)] 
patch 9.1.0938: exclusive selection not respected when re-selecting block mode

Problem:  exclusive selection not respected when re-selecting block mode
          (Matt Ellis)
Solution: advance selection by another character when using
          selection=exclusive and visual block mode

fixes: #16202
closes: #16219

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0937: test_undolist() is flaky v9.1.0937
Christian Brabandt [Mon, 16 Dec 2024 21:28:28 +0000 (22:28 +0100)] 
patch 9.1.0937: test_undolist() is flaky

Problem:  test_undolist() is flaky
Solution: allow to match one additional optional whitespace char

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0936: cannot highlight completed text v9.1.0936
glepnir [Mon, 16 Dec 2024 20:56:16 +0000 (21:56 +0100)] 
patch 9.1.0936: cannot highlight completed text

Problem:  cannot highlight completed text
Solution: (optionally) highlight auto-completed text using the
          ComplMatchIns highlight group (glepnir)

closes: #16173

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0935: SpotBugs compiler can be improved v9.1.0935
Aliaksei Budavei [Mon, 16 Dec 2024 20:37:54 +0000 (21:37 +0100)] 
patch 9.1.0935: SpotBugs compiler can be improved

Problem:  SpotBugs compiler can be improved
Solution: runtime(compiler): Improve defaults and error handling for
          SpotBugs; update test_compiler.vim (Aliaksei Budavei)

runtime(compiler): Improve defaults and error handling for SpotBugs

* Keep "spotbugs#DefaultPreCompilerTestAction()" defined but
  do not assign its Funcref to the "PreCompilerTestAction"
  key of "g:spotbugs_properties": there are no default and
  there can only be introduced arbitrary "*sourceDirPath"
  entries; therefore, this assignment is confusing at best,
  given that the function's implementation delegates to
  whatever "PreCompilerAction" is.

* Allow for the possibility of relative source pathnames
  passed as arguments to Vim for the Javac default actions,
  and the necessity to have them properly reconciled when
  the current working directory is changed.

* Do not expect users to remember or know that new source
  files ‘must be’ ":argadd"'d to be then known to the Javac
  default actions; so collect the names of Java-file buffers
  and Java-file Vim arguments; and let users providing the
  "@sources" file-lists in the "g:javac_makeprg_params"
  variable update these file-lists themselves.

* Strive to not leave behind a fire-once Syntax ":autocmd"
  for a Java buffer whenever an arbitrary pre-compile action
  errors out.

* Only attempt to run a post-compiler action in the absence
  of failures for a pre-compiler action.  Note that warnings
  and failures are treated alike (?!) by the Javac compiler,
  so when previews are tried out with "--enable-preview",
  remember about passing "-Xlint:-preview" too to also let
  SpotBugs have a go.

* Properly group conditional operators when testing for key
  entries in a user-defined variable.

* Also test whether "javaExternal" is defined when choosing
  an implementation for source-file parsing.

* Two commands are provided to toggle actions for buffer-local
  autocommands:
  - SpotBugsRemoveBufferAutocmd;
  - SpotBugsDefineBufferAutocmd.

For example, try this from "~/.vim/after/ftplugin/java.vim":
------------------------------------------------------------
if exists(':SpotBugsDefineBufferAutocmd') == 2
SpotBugsDefineBufferAutocmd BufWritePost SigUSR1
endif
------------------------------------------------------------

And ":doautocmd java_spotbugs User" can be manually used at will.

closes: #16140

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0934: hard to view an existing buffer in the preview window v9.1.0934
Yinzuo Jiang [Mon, 16 Dec 2024 20:22:09 +0000 (21:22 +0100)] 
patch 9.1.0934: hard to view an existing buffer in the preview window

Problem:  hard to view an existing buffer in the preview window
Solution: add the :pbuffer command (Yinzuo Jiang)

Similar as `:pedit` and `:buffer` command. `:pbuffer` edits buffer [N]
from the buffer list in the preview window.

`:pbuffer` can also open special buffer, for example terminal buffer.

closes: #16222

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(doc): document how to minimize fold computation costs
Konfekt [Mon, 16 Dec 2024 20:10:45 +0000 (21:10 +0100)] 
runtime(doc): document how to minimize fold computation costs

closes: #16224

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0933: Vim9: vim9compile.c can be further improved v9.1.0933
Yegappan Lakshmanan [Mon, 16 Dec 2024 19:56:56 +0000 (20:56 +0100)] 
patch 9.1.0933: Vim9: vim9compile.c can be further improved

Problem:  Vim9: vim9compile.c can be further improved
Solution: further refactor the compile assignment code
          (Yegappan Lakshmanan)

closes: #16230

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0932: new Italian tutor not installed v9.1.0932
Christian Brabandt [Mon, 16 Dec 2024 19:11:04 +0000 (20:11 +0100)] 
patch 9.1.0932: new Italian tutor not installed

Problem:  new Italian tutor not installed
Solution: add Makefile rule, include it into the Filelist
          ("Philip H." <47042125+pheiduck@users.noreply.github.com>),
          update the tutors help file

closes: #16215

Co-authored-by: Philip H. <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Philip H. <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(doc): fix a few minor errors from the last doc updates
Christian Brabandt [Mon, 16 Dec 2024 09:20:51 +0000 (10:20 +0100)] 
runtime(doc): fix a few minor errors from the last doc updates

1) move the section at :h inclusive-motion-selection-exclusive a few
lines below, so that it doesn't live in between the 2 exceptions.

2) remove the tag :h :!-range. It's not accurate (because it is actually
a filter) and this command is already described at :h :range!

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agotranslation(it): add Italian translation for the interactive tutor
Antonio Giovanni Colombo [Sun, 15 Dec 2024 20:36:55 +0000 (21:36 +0100)] 
translation(it): add Italian translation for the interactive tutor

Signed-off-by: Antonio Giovanni Colombo <azc100@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(doc): update the change.txt help file
Antonio Giovanni Colombo [Sun, 15 Dec 2024 20:17:49 +0000 (21:17 +0100)] 
runtime(doc): update the change.txt help file

Signed-off-by: Antonio Giovanni Colombo <azc100@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(help): Add Vim lang annotation support for codeblocks
Shougo Matsushita [Sun, 15 Dec 2024 19:47:37 +0000 (20:47 +0100)] 
runtime(help): Add Vim lang annotation support for codeblocks

closes: #16215

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0931: ml_get error in terminal buffer v9.1.0931
h-east [Sun, 15 Dec 2024 18:36:11 +0000 (19:36 +0100)] 
patch 9.1.0931: ml_get error in terminal buffer

Problem:  ml_get error in terminal buffer (user202729)
Solution: call update_topline() in win_enter_ext() for terminal buffers
          (h-east)

fixes: #16024
closes: #16211

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0930: tests: test_terminal2 may hang in GUI mode v9.1.0930
h-east [Sun, 15 Dec 2024 18:32:39 +0000 (19:32 +0100)] 
patch 9.1.0930: tests: test_terminal2 may hang in GUI mode

Problem:  tests: test_terminal2 may hang in GUI mode
Solution: break the loop in gui_mch_update() after at most 99 iterations
          (h-east)

related: #16211

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0929: filetype: lalrpop files are not recognized v9.1.0929
David Thievon [Sun, 15 Dec 2024 18:22:17 +0000 (19:22 +0100)] 
patch 9.1.0929: filetype: lalrpop files are not recognized

Problem:  filetype: lalrpop files are not recognized
Solution: detect '*.lalrpop' files as lalrpop filetype
          (David Thievon)

References:
https://github.com/lalrpop/lalrpop

closes: #16223

Signed-off-by: David Thievon <pdkfan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0928: tests: test_popupwin fails because the filter command fails v9.1.0928
Christian Brabandt [Sun, 15 Dec 2024 09:38:57 +0000 (10:38 +0100)] 
patch 9.1.0928: tests: test_popupwin fails because the filter command fails

Problem:  tests: test_popupwin fails because the filter command fails
Solution: add the "e" flag to the :s command to normalize the
          screendumps Last Change header so that it doesn't fail on
          "Pattern not found"

The test might still fail, because the "Last Change" hader should always
be part of the screendump, but at least the filter command should not
cause aborting of the test script.

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoeditorconfig: set trim_trailing_whitespace = false for src/testdir/test*.vim
Yinzuo Jiang [Sun, 15 Dec 2024 09:31:19 +0000 (10:31 +0100)] 
editorconfig: set trim_trailing_whitespace = false for src/testdir/test*.vim

closes: #16220

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0927: style issues in insexpand.c v9.1.0927
glepnir [Sat, 14 Dec 2024 20:13:27 +0000 (21:13 +0100)] 
patch 9.1.0927: style issues in insexpand.c

Problem:  style issues in insexpand.c
Solution: add braces, use ternary operator to improve style
          (glepnir)

closes: #16210

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0926: filetype: Pixi lock files are not recognized v9.1.0926
Brandon Maier [Sat, 14 Dec 2024 19:56:34 +0000 (20:56 +0100)] 
patch 9.1.0926: filetype: Pixi lock files are not recognized

Problem:  filetype: Pixi lock files are not recognized
Solution: detect "pixi.lock" file as yaml filetype
          (Brandon Maier)

Reference:
https://pixi.sh/latest/features/lockfile/

closes: #16212

Signed-off-by: Brandon Maier <brandon.maier@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(doc): Add a reference to |++opt| and |+cmd| at `:h :pedit`
Yinzuo Jiang [Sat, 14 Dec 2024 19:28:51 +0000 (20:28 +0100)] 
runtime(doc): Add a reference to |++opt| and |+cmd| at `:h :pedit`

closes: #16217

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(doc): add a note about inclusive motions and exclusive selection
Christian Brabandt [Sat, 14 Dec 2024 19:23:39 +0000 (20:23 +0100)] 
runtime(doc): add a note about inclusive motions and exclusive selection

related: #16202

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0925: Vim9: expression compiled when not necessary v9.1.0925
Yegappan Lakshmanan [Sat, 14 Dec 2024 18:59:24 +0000 (19:59 +0100)] 
patch 9.1.0925: Vim9: expression compiled when not necessary

Problem:  Vim9: expression compiled when not necessary
Solution: do not compile when ctx_skip is set, add a few more
          Vim9 expressions tests (Yegappan Lakshmanan)

closes: #16218

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0924: patch 9.1.0923 causes issues v9.1.0924
Christian Brabandt [Fri, 13 Dec 2024 16:54:33 +0000 (17:54 +0100)] 
patch 9.1.0924: patch 9.1.0923 causes issues

Problem:  patch 9.1.0923 causes issues (Shane-XB-Qian)
Solution: back-out the change

This reverts commit e29c8bafa78847414419522baecd008e287389db (v9.1.0923)

fixes: #16213
related: #16160

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0923: too many strlen() calls in filepath.c v9.1.0923
John Marriott [Fri, 13 Dec 2024 12:58:53 +0000 (13:58 +0100)] 
patch 9.1.0923: too many strlen() calls in filepath.c

Problem:  too many strlen() calls in filepath.c
Solution: refactor filepath.c and remove calls to STRLEN(),
          unify dos_expandpath() and unix_expandpath() into
          a single function

closes: #16160

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0923: wrong MIN macro in popupmenu.c v9.1.0922
Christian Brabandt [Fri, 13 Dec 2024 11:30:20 +0000 (12:30 +0100)] 
patch 9.1.0923: wrong MIN macro in popupmenu.c

Problem:  wrong MIN macro in popupmenu.c (after v9.1.0921)
          (zeertzjq)
Solution: change it to MAX()

Co-authored-by: glepnir <glephunter@gmail.com>
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0921: popupmenu logic is a bit convoluted v9.1.0921
glepnir [Fri, 13 Dec 2024 11:13:23 +0000 (12:13 +0100)] 
patch 9.1.0921: popupmenu logic is a bit convoluted

Problem:  popupmenu logic is a bit convoluted
Solution: slightly refactor logic and use MIN/MAX() macros to simplify
          (glepnir)

Define the MAX/MIN macros. Since we support some older platforms, C
compilers may not be as smart. This helps reduce unnecessary if
statements and redundant ternary expressions. Pre-calculate some
expressions by defining variables. Remove unnecessary parentheses.
Adjust certain lines to avoid exceeding 80 columns.

closes: #16205

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0920: Vim9: compile_assignment() too long v9.1.0920
Yegappan Lakshmanan [Fri, 13 Dec 2024 10:54:54 +0000 (11:54 +0100)] 
patch 9.1.0920: Vim9: compile_assignment() too long

Problem:  Vim9: compile_assignment() too long
Solution: refactor compile_assignment() function and split up into
          smaller parts (Yegappan Lakshmanan)

closes: #16209

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0919: filetype: some assembler files are not recognized v9.1.0919
Wu, Zhenyu [Thu, 12 Dec 2024 18:31:54 +0000 (19:31 +0100)] 
patch 9.1.0919: filetype: some assembler files are not recognized

Problem:  filetype: some assembler are files not recognized
Solution: detect '*.nasm' files as nasm filetype and '*.masm' as masm
          filetype (Wu, Zhenyu)

closes: #16194

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(netrw): do not pollute search history with symlinks
Christian Brabandt [Thu, 12 Dec 2024 18:13:08 +0000 (19:13 +0100)] 
runtime(netrw): do not pollute search history with symlinks

fixes: #16206

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0918: tiny Vim crashes with fuzzy buffer completion v9.1.0918
826814741_6 [Tue, 10 Dec 2024 16:15:14 +0000 (17:15 +0100)] 
patch 9.1.0918: tiny Vim crashes with fuzzy buffer completion

Problem:  tiny Vim crashes with fuzzy buffer completion
Solution: Adjust #ifdefs in ExpandBufnames() (826814741_6)

closes: #16200

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: 826814741_6 <44406129+826814741-6@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0917: various vartabstop and shiftround bugs when shifting lines v9.1.0917
Gary Johnson [Mon, 9 Dec 2024 20:03:48 +0000 (21:03 +0100)] 
patch 9.1.0917: various vartabstop and shiftround bugs when shifting lines

Problem:  various vartabstop and shiftround bugs when shifting lines
Solution: Fix the bugs, add new tests for shifting lines in various ways
          (Gary Johnson)

fixes: #14891
closes: #16193

Signed-off-by: Gary Johnson <garyjohn@spocom.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(typst): add definition lists to formatlistpat, update maintainer
Luca Saccarola [Mon, 9 Dec 2024 19:29:14 +0000 (20:29 +0100)] 
runtime(typst): add definition lists to formatlistpat, update maintainer

closes: #16192

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoadd saccarosium to maintainers files
Luca Saccarola [Mon, 9 Dec 2024 19:22:44 +0000 (20:22 +0100)] 
add saccarosium to maintainers files

closes: #16197

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
7 months agopatch 9.1.0916: messages.c is exceeding 80 columns v9.1.0916
h-east [Mon, 9 Dec 2024 19:05:59 +0000 (20:05 +0100)] 
patch 9.1.0916: messages.c is exceeding 80 columns

Problem:  messages.c is exceeding 80 columns
Solution: slightly reformat messages.c (h-east)

closes: #16196

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(proto): include filetype plugin for protobuf
David Pedersen [Mon, 9 Dec 2024 18:56:34 +0000 (19:56 +0100)] 
runtime(proto): include filetype plugin for protobuf

closes: #16199

Signed-off-by: David Pedersen <limero@me.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0915: GVim: default font size a bit too small v9.1.0915
matveyt [Sun, 8 Dec 2024 09:26:51 +0000 (10:26 +0100)] 
patch 9.1.0915: GVim: default font size a bit too small

Problem:  GVim: default font size a bit too small
Solution: increase guifont size to 12 pt on GTK builds
          of gVim (matveyt).

fixes: #16172
closes: #16178

Signed-off-by: matveyt <matthewtarasov@yandex.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0914: Vim9: compile_assignment() is too long v9.1.0914
Yegappan Lakshmanan [Sun, 8 Dec 2024 09:15:35 +0000 (10:15 +0100)] 
patch 9.1.0914: Vim9: compile_assignment() is too long

Problem:  Vim9: compile_assignment() is too long
Solution: refactor compile_assignment() into smaller functions
          (Yegappan Lakshmanan)

closes: #16186

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0913: no error check for neg values for 'messagesopt' v9.1.0913
h-east [Sun, 8 Dec 2024 09:05:26 +0000 (10:05 +0100)] 
patch 9.1.0913: no error check for neg values for 'messagesopt'

Problem:  no error check for neg values for 'messagesopt'
          (after v9.1.0908)
Solution: add additional error checks and tests (h-east)

closes: #16187

Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(netrw): only check first arg of netrw_browsex_viewer for being executable
Christian Brabandt [Sun, 8 Dec 2024 08:52:37 +0000 (09:52 +0100)] 
runtime(netrw): only check first arg of netrw_browsex_viewer for being executable

fixes: #16185

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0912: xxd: integer overflow with sparse files and -autoskip v9.1.0912
sendittothenewts [Sat, 7 Dec 2024 15:27:22 +0000 (16:27 +0100)] 
patch 9.1.0912: xxd: integer overflow with sparse files and -autoskip

Problem:  xxd: integer overflow with sparse files and -autoskip
Solution: reset zero_seen when at the limit, change the type to char
          (sendittothenewts)

When encountering INT_MAX lines of zeros in the input, xxd overflows an
`int` counter, resulting in undefined behaviour.  Usually, this results
in a spurious line of zeros being output every 2**32 lines, while the
"*" line is lost, as is the final line of zeros that delineate the file
size if at end of file.

Since xxd doesn't need to know exactly how many lines are being skipped
when it's > 3, the exact value of the line counter `zero_seen` doesn't
matter and it can simply be reduced in value before the overflow occurs.

Changing the type of `zero_seen` to `signed char` is not important, and
done only to make the bug triggerable with more modest file sizes, and
therefore more convenient to test the fix.

fixes: #16170
closes: #16175

Signed-off-by: sendittothenewts <ross.axe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0911: Variable name for 'messagesopt' doesn't match short name v9.1.0911
zeertzjq [Sat, 7 Dec 2024 15:09:08 +0000 (16:09 +0100)] 
patch 9.1.0911: Variable name for 'messagesopt' doesn't match short name

Problem:  Variable name for 'messagesopt' doesn't match short name
          (after v9.1.0908)
Solution: Change p_meo to p_mopt.  Add more details to docs.
          (zeertzjq)

closes: #16182

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0910: 'messagesopt' does not check max wait time v9.1.0910
Shougo Matsushita [Sat, 7 Dec 2024 15:00:25 +0000 (16:00 +0100)] 
patch 9.1.0910: 'messagesopt' does not check max wait time

Problem:  'messagesopt' does not check max wait time
          (after v9.1.0908)
Solution: Check for max wait value
          (Shougo Matsushita)

closes: #16183

Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(doc): update wrong Vietnamese localization tag
Christian Brabandt [Sat, 7 Dec 2024 14:57:34 +0000 (15:57 +0100)] 
runtime(doc): update wrong Vietnamese localization tag

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0909: Vim9: crash when calling instance method v9.1.0909
Yegappan Lakshmanan [Fri, 6 Dec 2024 17:35:12 +0000 (18:35 +0100)] 
patch 9.1.0909: Vim9: crash when calling instance method

Problem:  Vim9: crash when calling instance method
          (Igbanam Ogbuluijah)
Solution: Pass the object when calling a partial function
          (Yegappan Lakshmanan)

fixes: #16166
closes: #16180

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0908: not possible to configure :messages v9.1.0908
Christian Brabandt [Fri, 6 Dec 2024 16:26:25 +0000 (17:26 +0100)] 
patch 9.1.0908: not possible to configure :messages

Problem:  not possible to configure :messages
Solution: add the 'messagesopt' option (Shougo Matsushita)

closes: #16068

Co-authored-by: h_east <h.east.727@gmail.com>
Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0907: printoptions:portrait does not change postscript Orientation v9.1.0907
Christian Brabandt [Fri, 6 Dec 2024 16:19:25 +0000 (17:19 +0100)] 
patch 9.1.0907: printoptions:portrait does not change postscript Orientation

Problem:  printoptions:portrait does not change postscript Orientation
Solution: Set Orientation depending on portrait suboption.

fixes: #16156
closes: #16174

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(doc): Add vietnamese.txt to helps main TOC
h-east [Fri, 6 Dec 2024 15:03:37 +0000 (16:03 +0100)] 
runtime(doc): Add vietnamese.txt to helps main TOC

closes: #16177

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0906: filetype: Nvidia PTX files are not recognized v9.1.0906
Yinzuo Jiang [Thu, 5 Dec 2024 20:31:09 +0000 (21:31 +0100)] 
patch 9.1.0906: filetype: Nvidia PTX files are not recognized

Problem:  filetype: Nvidia PTX files are not recognized
Solution: detect '*.ptx' files as ptx filetype (Yinzuo Jiang)

Reference: https://docs.nvidia.com/cuda/parallel-thread-execution/

closes: #16171

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(doc): updated version9.txt with changes from v9.1.0905
Christian Brabandt [Thu, 5 Dec 2024 20:06:12 +0000 (21:06 +0100)] 
runtime(doc): updated version9.txt with changes from v9.1.0905

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0905: Missing information in CompleteDone event v9.1.0905
glepnir [Wed, 4 Dec 2024 19:27:34 +0000 (20:27 +0100)] 
patch 9.1.0905: Missing information in CompleteDone event

Problem:  Missing information in CompleteDone event
Solution: add complete_word and complete_type to v:event dict
          (glepnir)

closes: #16153

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0904: Vim9: copy-paste error in class_defining_member() v9.1.0904
Zdenek Dohnal [Wed, 4 Dec 2024 19:19:40 +0000 (20:19 +0100)] 
patch 9.1.0904: Vim9: copy-paste error in class_defining_member()

Problem:  Vim9: copy-paste error in class_defining_member()
Solution: use variable type VAR_CLASS instead (Zdenek Dohnal)

Found issue by OpenScanHub:
Error: COPY_PASTE_ERROR (CWE-398):
vim91/src/vim9class.c:3308: original: "VAR_OBJECT" looks like the
original copy.
vim91/src/vim9class.c:3316: copy_paste_error: "VAR_OBJECT" looks like a
copy-paste error.
vim91/src/vim9class.c:3316: remediation: Should it say "VAR_CLASS"
instead?
3314|             {
3315|                 cl_tmp = super;
3316|->               vartype = VAR_OBJECT;
3317|             }
3318|         }

closes: #16163

Signed-off-by: Zdenek Dohnal <zdohnal@redhat.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0903: potential overflow in spell_soundfold_wsal() v9.1.0903
Zdenek Dohnal [Wed, 4 Dec 2024 19:16:17 +0000 (20:16 +0100)] 
patch 9.1.0903: potential overflow in spell_soundfold_wsal()

Problem:  potential overflow in spell_soundfold_wsal()
Solution: Protect wres from buffer overflow, by checking the
          length (Zdenek Dohnal)

Error: OVERRUN (CWE-119):
vim91/src/spell.c:3819: cond_const: Checking "reslen < 254" implies that
"reslen" is 254 on the false branch.
vim91/src/spell.c:3833: incr: Incrementing "reslen". The value of "reslen"
is now 255.
vim91/src/spell.c:3792: overrun-local: Overrunning array "wres" of 254
4-byte elements at element index 254 (byte offset 1019) using index
"reslen - 1" (which evaluates to 254).
 3789|        {
 3790|    // rule with '<' is used
 3791|->  if (reslen > 0 && ws != NULL && *ws != NUL
 3792|    && (wres[reslen - 1] == c
 3793|        || wres[reslen - 1] == *ws))

Error: OVERRUN (CWE-119):
vim91/src/spell.c:3819: cond_const: Checking "reslen < 254" implies that
"reslen" is 254 on the false branch.
vim91/src/spell.c:3833: overrun-local: Overrunning array "wres" of 254
4-byte elements at element index 254 (byte offset 1019) using index
"reslen++" (which evaluates to 254).
 3831|                         {
 3832|                             if (c != NUL)
 3833|->                               wres[reslen++] = c;
 3834|                             mch_memmove(word, word + i + 1,
 3835|                                        sizeof(int) * (wordlen -
(i + 1) + 1));

related: #16163

Signed-off-by: Zdenek Dohnal <zdohnal@redhat.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(netrw): do not detach when launching external programs in gvim
Konfekt [Wed, 4 Dec 2024 19:12:44 +0000 (20:12 +0100)] 
runtime(netrw): do not detach when launching external programs in gvim

On Debian 12 when detaching the program wouldn't launch at all

closes: #16168

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(doc): make tag alignment more consistent in filetype.txt
zeertzjq [Wed, 4 Dec 2024 19:08:25 +0000 (20:08 +0100)] 
runtime(doc): make tag alignment more consistent in filetype.txt

closes: #16169

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
7 months agoruntime(doc): fix wrong syntax and style of vietnamese.txt
Christian Brabandt [Wed, 4 Dec 2024 19:06:45 +0000 (20:06 +0100)] 
runtime(doc): fix wrong syntax and style of vietnamese.txt

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agotranslation(it): update Italian manpage for vimtutor
Antonio Giovanni Colombo [Wed, 4 Dec 2024 19:01:01 +0000 (20:01 +0100)] 
translation(it): update Italian manpage for vimtutor

Signed-off-by: Antonio Giovanni Colombo <azc100@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(lua): add optional lua function folding
Enno [Tue, 3 Dec 2024 21:23:48 +0000 (22:23 +0100)] 
runtime(lua): add optional lua function folding

closes: #16151

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoFilelist: include translations for Chapter 2 tutor
Christian Brabandt [Tue, 3 Dec 2024 21:16:41 +0000 (22:16 +0100)] 
Filelist: include translations for Chapter 2 tutor

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agotranslation(vi): Update Vietnamese translation
Phạm Bình An [Tue, 3 Dec 2024 21:11:43 +0000 (22:11 +0100)] 
translation(vi): Update Vietnamese translation

closes: #16144

Signed-off-by: Phạm Bình An <111893501+brianhuster@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(doc): include vietnamese.txt
Phạm Bình An [Tue, 3 Dec 2024 20:59:52 +0000 (21:59 +0100)] 
runtime(doc): include vietnamese.txt

Since Vietnamese keymaps in Vim is quite differences from the
corresponding input methods, let's document the Vietnamese specifics in
vietnames.txt

related: #16144

Signed-off-by: Phạm Bình An <111893501+brianhuster@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(tutor): fix another typo in tutor2
Antonio Giovanni Colombo [Tue, 3 Dec 2024 20:27:30 +0000 (21:27 +0100)] 
runtime(tutor): fix another typo in tutor2

Signed-off-by: Antonio Giovanni Colombo <azc100@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(doc): fix typo in vimtutor manpage
Christian Brabandt [Tue, 3 Dec 2024 20:23:43 +0000 (21:23 +0100)] 
runtime(doc): fix typo in vimtutor manpage

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agotranslation(it): update Italian manpage for vimtutor
Antonio Giovanni Colombo [Tue, 3 Dec 2024 20:21:09 +0000 (21:21 +0100)] 
translation(it): update Italian manpage for vimtutor

Signed-off-by: Antonio Giovanni Colombo <azc100@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agotranslation(it): include Italian version of tutor chapter 2
Antonio Giovanni Colombo [Tue, 3 Dec 2024 20:14:45 +0000 (21:14 +0100)] 
translation(it): include Italian version of tutor chapter 2

Signed-off-by: Antonio Giovanni Colombo <azc100@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(tutor): regenerated some translated tutor1 files
Christian Brabandt [Tue, 3 Dec 2024 20:12:17 +0000 (21:12 +0100)] 
runtime(tutor): regenerated some translated tutor1 files

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(tutor): fix typo in Chapter 2
Antonio Giovanni Colombo [Tue, 3 Dec 2024 20:10:43 +0000 (21:10 +0100)] 
runtime(tutor): fix typo in Chapter 2

Signed-off-by: Antonio Giovanni Colombo <azc100@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0902: filetype: Conda configuration files are not recognized v9.1.0902
zeertzjq [Tue, 3 Dec 2024 19:43:52 +0000 (20:43 +0100)] 
patch 9.1.0902: filetype: Conda configuration files are not recognized

Problem:  filetype: Conda configuration files are not recognized
Solution: detect '.condarc' and 'condarc' files as yaml filetype.
          (zeertzjq)

closes: #16162

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(doc): Tweak documentation style a bit
h-east [Tue, 3 Dec 2024 19:37:52 +0000 (20:37 +0100)] 
runtime(doc): Tweak documentation style a bit

closes: #16164

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(tutor): update the tutor files and re-number the chapters
RestorerZ [Mon, 2 Dec 2024 19:19:52 +0000 (20:19 +0100)] 
runtime(tutor): update the tutor files and re-number the chapters

closes: #16110

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(tutor): Update the makefiles for tutor1 and tutor2 files
RestorerZ [Mon, 2 Dec 2024 19:13:52 +0000 (20:13 +0100)] 
runtime(tutor): Update the makefiles for tutor1 and tutor2 files

closes: #16111

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0901: MS-Windows: vimtutor batch script can be improved v9.1.0901
RestorerZ [Mon, 2 Dec 2024 19:07:58 +0000 (20:07 +0100)] 
patch 9.1.0901: MS-Windows: vimtutor batch script can be improved

Problem:  MS-Windows: vimtutor batch script can be improved
Solution: Update vimtutor.bat, validate languages using Powershell
          cultureinfo (RestorerZ)

closes: #16112

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(doc): remove buffer-local completeopt todo item
glepnir [Mon, 2 Dec 2024 19:03:27 +0000 (20:03 +0100)] 
runtime(doc): remove buffer-local completeopt todo item

has already implemented by @zeertzjq  on https://github.com/vim/vim/pull/14922

closes: #16152

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0900: Vim9: digraph_getlist() does not accept bool arg v9.1.0900
Yegappan Lakshmanan [Mon, 2 Dec 2024 18:58:51 +0000 (19:58 +0100)] 
patch 9.1.0900: Vim9: digraph_getlist() does not accept bool arg

Problem:  Vim9: digraph_getlist() does not accept bool argument
          (Maxim Kim)
Solution: accept boolean as first argument (Yegappan Lakshmanan)

fixes: #16154
closes: #16159

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(typst): provide a formatlistpat in ftplugin
Luca Saccarola [Sun, 1 Dec 2024 19:12:26 +0000 (20:12 +0100)] 
runtime(typst): provide a formatlistpat in ftplugin

closes: #16134

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(doc): Update documentation for "noselect" in 'completeopt'
dundargoc [Sun, 1 Dec 2024 19:06:42 +0000 (20:06 +0100)] 
runtime(doc): Update documentation for "noselect" in 'completeopt'

In particular, make the distinction and interaction between "noinsert"
and "noselect" clearer as it was very confusing before.

closes: #16148

Signed-off-by: dundargoc <gocdundar@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agopatch 9.1.0899: default for 'backspace' can be set in C code v9.1.0899
Luca Saccarola [Sun, 1 Dec 2024 15:25:53 +0000 (16:25 +0100)] 
patch 9.1.0899: default for 'backspace' can be set in C code

Problem:  default for 'backspace' can be set in C code
Solution: promote the default for 'backspace' from defaults.vim to the C
          code (Luca Saccarola)

closes: #16143

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 months agoruntime(helptoc): reload cached g:helptoc.shell_prompt when starting toc
D. Ben Knoble [Sun, 1 Dec 2024 15:06:18 +0000 (16:06 +0100)] 
runtime(helptoc): reload cached g:helptoc.shell_prompt when starting toc

Follow up on PR 10446 [1] so that changes at run-time (or after loading
a vimrc) are reflected at next use. Instead of "uncaching" the variable
by computing SHELL_PROMPT on each use, which could negatively impact
performance, reload any user settings before creating the TOC.

Also make sure, changes to the shell prompt variable do correctly
invalidate b:toc, so that the table of content is correctly re-created
after user makes any changes.

[1]: https://github.com/vim/vim/pull/10446#issuecomment-2485169333

closes: #16097

Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>