]>
git.ipfire.org Git - thirdparty/vim.git/log
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
RestorerZ [Sun, 1 Dec 2024 14:56:33 +0000 (15:56 +0100)]
translation(ru): Updated messages translation
closes: #16145
Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Konfekt [Sat, 30 Nov 2024 10:32:49 +0000 (11:32 +0100)]
patch 9.1.0898: runtime(compiler): pytest compiler not included
Problem: runtime(compiler): pytest compiler not included
Solution: include pytest compiler, update the compiler completion test
(Konfekt)
closes: #16130
Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
user202729 [Sat, 30 Nov 2024 10:09:49 +0000 (11:09 +0100)]
patch 9.1.0897: filetype: pyrex files are not detected
Problem: filetype: pyrex files are not detected
Solution: detect '*.pxi' and '*.pyx+' as pyrex filetype
(user202729)
References:
https://cython.readthedocs.io/en/latest/src/userguide/language_basics.html#cython-file-types
https://www.csse.canterbury.ac.nz/greg.ewing/python/Pyrex/version/Doc/Manual/using_with_c++.html
closes: #16136
Signed-off-by: user202729 <25191436+user202729@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Romain Lafourcade [Sat, 30 Nov 2024 10:05:18 +0000 (11:05 +0100)]
runtime(compiler): update eslint compiler
compact formatter is no longer distributed with eslint, so:
- switch to '--format stylish' in makeprg
- update 'errorformat' for the 'stylish' format output
fixes: #16126
closes: #16137
Signed-off-by: Romain Lafourcade <romainlafourcade@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
glepnir [Sat, 30 Nov 2024 09:56:30 +0000 (10:56 +0100)]
patch 9.1.0896: completion list wrong after v9.1.0891
Problem: completion list wrong after v9.1.0891
Solution: update compl_mach_array after leader change
(glepnir)
compl_shown_match update not correct after refactoring in v9.1.0891
Unfortunately, this regressed what item is selected after leader change.
So generate compl_match_array before updating compl_shown_match range,
and split generate compl_match_array into range match_head
fixes: #16128
closes: #16129
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Christian Brabandt [Thu, 28 Nov 2024 22:12:53 +0000 (23:12 +0100)]
runtime(doc): document changed default value for 'history'
Signed-off-by: Christian Brabandt <cb@256bit.org>
Luca Saccarola [Thu, 28 Nov 2024 21:27:28 +0000 (22:27 +0100)]
patch 9.1.0895: default history value is too small
Problem: default history value is too small
Solution: promote the change from defaults.vim back to
the C core, so increase the default 'history' option value
from 50 to 200 (Lucca Saccarola)
closes: #16129
Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Aliaksei Budavei [Thu, 28 Nov 2024 21:05:37 +0000 (22:05 +0100)]
patch 9.1.0894: No test for what the spotbug compiler parses
Problem: No test for what the spotbug compiler parses
(after commit:
65311c6f472de67b368 )
Solution: Test &makeprg for the SpotBugs compiler plugin
(Aliaksei Budavei)
closes: #16096
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Christian Brabandt [Thu, 28 Nov 2024 20:59:33 +0000 (21:59 +0100)]
patch 9.1.0893: No test that undofile format does not regress
Problem: No test that undofile format does not regress
Solution: include a sample undofile to make sure we are always able to
read it
This is so, that we don't unintentionally change the undofile format and
make sure we can load an undo file that has been created by an older
Vim.
closes: #16127
Signed-off-by: Christian Brabandt <cb@256bit.org>
Christian Brabandt [Thu, 28 Nov 2024 20:45:39 +0000 (21:45 +0100)]
translation(de): update German manpages
fixes: #16086
Signed-off-by: Christian Brabandt <cb@256bit.org>
Konfekt [Thu, 28 Nov 2024 20:06:09 +0000 (21:06 +0100)]
runtime(compiler): include spotbugs Java linter
closes: #16001
Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Milly [Thu, 28 Nov 2024 17:16:55 +0000 (18:16 +0100)]
patch 9.1.0892: the max value of 'tabheight' is limited by other tabpages
Problem: the max value of 'tabheight' is limited by other tabpages
Solution: Limit the maximum value of 'cmdheight' to the current tabpage only.
(Milly)
The Help says that cmdheight is local to the tab page, but says nothing
about the maximum value depending on the state of all tab pages. Users
may wonder why they can't increase cmdheight when there are still rows
available on the current tab page. This PR changes the behavior of
cmdheight so that its maximum value depends only on the state of the
current tab page.
Also, since magic numbers were embedded in various places with the
minimum value of cmdheight being 1, we defined a constant to make it
easier to understand.
closes: #16131
Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Eisuke Kawashima [Thu, 28 Nov 2024 17:00:09 +0000 (18:00 +0100)]
runtime(po): remove poDiffOld/New, add po-format flags to syntax file
fixes: #16120
closes: #16132
Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
glepnir [Wed, 27 Nov 2024 20:53:53 +0000 (21:53 +0100)]
patch 9.1.0891: building the completion list array is inefficient
Problem: building the completion list array is inefficient
Solution: refactor and improve ins_compl_build_pum() func
(glepnir)
current time complexity is O(n^2). I guess garray is not used here to save memory and avoid efficiency
is caused by heap memory allocation. A simple way is to add an extra pointer as a single linked list
to store the matching compl_T, and traverse this single linked list to generate compl_match_array.
The time complexity is O(n x m). The worst case is m=n, but we can still get a little improvement.
Because the if condition does not need to be run at one time. This should be a good solution for now.
Later we may be able to complete it in O(lgn) time. But this requires more reconstruction. So this is
the first step.
closes: #16125
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Yegappan Lakshmanan [Wed, 27 Nov 2024 19:55:45 +0000 (20:55 +0100)]
patch 9.1.0890: %! item not allowed for 'rulerformat'
Problem: %! item not allowed for 'rulerformat'
(yatinlala)
Solution: also allow to use %! for rulerformat option
(Yegappan Lakshmanan)
fixes: #16091
closes: #16118
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Christian Brabandt [Tue, 26 Nov 2024 14:10:33 +0000 (15:10 +0100)]
runtime(gzip): load undofile if there exists one
fixes: #16102
closes: #16122
Signed-off-by: Christian Brabandt <cb@256bit.org>
zeertzjq [Tue, 26 Nov 2024 14:08:02 +0000 (15:08 +0100)]
patch 9.1.0889: Possible unnecessary redraw after adding/deleting lines
Problem: Possible unnecessary redraw after adding/deleting lines.
Solution: Check b_mod_set before using b_mod_xlines to avoid using stale
b_mod_xlines value (zeertzjq).
closes: #16124
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
glepnir [Mon, 25 Nov 2024 18:39:04 +0000 (19:39 +0100)]
patch 9.1.0888: leftcol property not available in getwininfo()
Problem: leftcol property not available in getwininfo()
Solution: add leftcol property property (glepnir)
closes: #16119
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Philip H. [Mon, 25 Nov 2024 09:03:34 +0000 (10:03 +0100)]
CI: update FreeBSD runner to 14.2
closes: #16115
Signed-off-by: Philip H. <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Christian Brabandt [Mon, 25 Nov 2024 08:59:20 +0000 (09:59 +0100)]
patch 9.1.0887: Wrong expression in sign.c
Problem: Wrong expression in sign.c
(after v9.1.0885)
Solution: remove the duplicate expression
Signed-off-by: Christian Brabandt <cb@256bit.org>
Wu, Zhenyu [Sun, 24 Nov 2024 13:34:01 +0000 (14:34 +0100)]
patch 9.1.0886: filetype: debian control file not detected
Problem: filetype: debian control file not detected
Solution: detect 'debian/control' files as debcontrol filetype
(author)
closes: #16067
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: James McCoy <jamessan@debian.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Turiiya [Sun, 24 Nov 2024 13:30:43 +0000 (14:30 +0100)]
runtime(c3): include c3 filetype plugin
closes: #16090
Signed-off-by: Turiiya <34311583+ttytm@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Luca Saccarola [Sun, 24 Nov 2024 13:25:06 +0000 (14:25 +0100)]
patch 9.1.0885: style of sign.c can be improved
Problem: style of sign.c can be improved
Solution: Refactor code (Luca Saccarola)
Purpose of this commit is:
- separate clearly sections of code
- declare variables at the lowest scope possible
- initialize all variables
closes: #16092
Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
John Marriott [Sun, 24 Nov 2024 13:09:40 +0000 (14:09 +0100)]
patch 9.1.0884: gcc warns about uninitialized variable
Problem: gcc warns about uninitialized variable in vim_strnicmp_asc()
Solution: initialize variable to 1
(John Marriott)
closes: #16108
Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
nisbet-hubbard [Sun, 24 Nov 2024 13:07:31 +0000 (14:07 +0100)]
runtime(apache): Update syntax directives for apache server 2.4.62
closes: #16109
Signed-off-by: nisbet-hubbard <87453615+nisbet-hubbard@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
RestorerZ [Sun, 24 Nov 2024 12:50:28 +0000 (13:50 +0100)]
translation(ru): updated vimtutor translation, update MAINTAINERS file
the translated man page is synchronized with the original English
closes: #16113
Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Shougo Matsushita [Sun, 24 Nov 2024 12:48:05 +0000 (13:48 +0100)]
patch 9.1.0883: message history cleanup is missing some tests
Problem: message history cleanup is missing some tests
Solution: Add tests, refactor common code into did_set_msghistory()
(Shougo Matsushita)
closes: #16078
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Co-authored-by: Milly <milly.ca@gmail.com>
Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
matveyt [Sat, 23 Nov 2024 13:19:58 +0000 (14:19 +0100)]
runtime(doc): Expand docs on :! vs. :term
fixes: #16071
closes: #16089
Signed-off-by: matveyt <matthewtarasov@yandex.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
GuyBrush [Sat, 23 Nov 2024 13:13:10 +0000 (14:13 +0100)]
runtime(netrw): Fixing powershell execution issues on Windows
closes: #16094
Signed-off-by: GuyBrush <miguel.barro@live.com>
John Marriott [Sat, 23 Nov 2024 13:01:57 +0000 (14:01 +0100)]
patch 9.1.0882: too many strlen() calls in insexpand.c
Problem: too many strlen() calls in insexpand.c
Solution: Refactor insexpand.c and reduce number of calls to STRLEN(),
fix a warning get_next_filename_completion(), add new function
ins_compl_leader_len() (John Marriott)
closes: #16095
Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Chris White [Sat, 23 Nov 2024 12:35:43 +0000 (13:35 +0100)]
patch 9.1.0881: GUI: message dialog may not get focus
Problem: GUI: message dialog may not get focus
Solution: add window manager hint to give focus to the dialog
(Chris White)
Tell the window manager that message dialogs should be given focus when
the user switches from another application back to Vim. This can
happen, e.g., when the user has a file open in Vim and then edits it
in another program.
fixes: #172
closes: #16100
Signed-off-by: Chris White <christopher.white@crowdstrike.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Christian Brabandt [Sat, 23 Nov 2024 12:28:01 +0000 (13:28 +0100)]
runtime(netrw): update netrw's decompress logic
Detect a few more default archive types, correctly handle file
extensions with digits in it.
fixes: #16099
closes: #16104
Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
nisbet-hubbard [Sat, 23 Nov 2024 12:14:47 +0000 (13:14 +0100)]
runtime(apache): Update syntax keyword definition
closes: #16105
Signed-off-by: nisbet-hubbard <87453615+nisbet-hubbard@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Antonio Giovanni Colombo [Tue, 19 Nov 2024 22:13:46 +0000 (23:13 +0100)]
runtime(misc): add Italian LICENSE and (top-level) README file
related: #16061
Signed-off-by: Antonio Giovanni Colombo <azc100@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Turiiya [Tue, 19 Nov 2024 22:05:21 +0000 (23:05 +0100)]
patch 9.1.0880: filetype: C3 files are not recognized
Problem: filetype: C3 files are not recognized
Solution: detect '*.c3*' files as c3 filetype (Turiiya)
closes: #16087
Signed-off-by: Turiiya <34311583+ttytm@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Christian Brabandt [Tue, 19 Nov 2024 22:02:57 +0000 (23:02 +0100)]
runtime(doc): add helptag for :HelpToc command
Signed-off-by: Christian Brabandt <cb@256bit.org>
Christian Brabandt [Tue, 19 Nov 2024 21:58:40 +0000 (22:58 +0100)]
git: ignore re-formatting commit v9.1.0879 for blame
Signed-off-by: Christian Brabandt <cb@256bit.org>
Luca Saccarola [Tue, 19 Nov 2024 21:55:13 +0000 (22:55 +0100)]
patch 9.1.0879: source is not consistently formatted
Problem: source is not consistently formatted
Solution: reformat sign.c and sound.c
(Luca Saccarola)
closes: #16019
Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Luca Saccarola [Tue, 19 Nov 2024 21:53:12 +0000 (22:53 +0100)]
Add clang-format config file
This is used in preparation to enable automatic code-formatting in the
following commits. For now let's just add a clang-format config file,
formatting of source files will follow.
related: #16019
Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Konfekt [Tue, 19 Nov 2024 21:41:14 +0000 (22:41 +0100)]
runtime(compiler): fix escaping of arguments passed to :CompilerSet
See newly added help entry referring to option-backslash
closes: #16084
Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Ubaldo Tiberi [Tue, 19 Nov 2024 21:32:30 +0000 (22:32 +0100)]
patch 9.1.0878: termdebug: cannot enable DEBUG mode
Problem: termdebug: cannot enable DEBUG mode
Solution: Allow to specify DEBUG mode (Ubaldo Tiberi)
closes: #16080
Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@volvo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Ubaldo Tiberi [Tue, 19 Nov 2024 20:10:24 +0000 (21:10 +0100)]
patch 9.1.0877: tests: missing test for termdebug + decimal signs
Problem: tests: missing test for termdebug + decimal signs
Solution: Add a termdebug test (Ubaldo Tiberi)
closes: #16081
Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@volvo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Wu, Zhenyu [Tue, 19 Nov 2024 19:55:25 +0000 (20:55 +0100)]
patch 9.1.0876: filetype: openCL files are not recognized
Problem: filetype: openCL files are not recognized
Solution: detect '*.cl' files as opencl or lisp filetype,
include a opencl syntax and filetype plugin (Wu, Zhenyu)
closes: #15825
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Luca Saccarola [Tue, 19 Nov 2024 19:43:52 +0000 (20:43 +0100)]
patch 9.1.0875: filetype: hyprlang detection can be improved
Problem: filetype: hyprlang detection can be improved
Solution: detect '/hypr/*.conf' files as hyprlang filetype,
include basic syntax highlighting (Luca Saccarola)
fixes: #15875
closes: #16064
Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Kirill Morozov [Tue, 19 Nov 2024 19:36:22 +0000 (20:36 +0100)]
patch 9.1.0874: filetype: karel files are not detected
Problem: filetype: karel files are not detected
Solution: detect '*.kl' files as karel filetype,
include syntax and filetype plugin
(Kirill Morozov)
closes: #16075
Co-authored-by: KnoP-01 <knosowski@graeffrobotics.de>
Signed-off-by: Kirill Morozov <kirill@robotix.pro>
Signed-off-by: Christian Brabandt <cb@256bit.org>
rhysd [Tue, 19 Nov 2024 12:46:17 +0000 (13:46 +0100)]
CI: join codecov array flags, instead of accessing it directly
closes: #16082
Signed-off-by: rhysd <lin90162@yahoo.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Wu, Zhenyu [Mon, 18 Nov 2024 20:36:31 +0000 (21:36 +0100)]
patch 9.1.0873: filetype: Vivado files are not recognized
Problem: filetype: Vivado files are not recognized
Solution: detect '*.mss' files as 'mss' filetype
(Wu, Zhenyu)
references:
https://docs.amd.com/r/2020.2-English/ug1400-vitis-embedded/Microprocessor-Software-Specification-MSS
closes: #15907
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Christian Brabandt [Mon, 18 Nov 2024 20:18:46 +0000 (21:18 +0100)]
patch 9.1.0872: No test for W23 message
Problem: No test for W23 message
Solution: Check for W23 message when accessing the clipboard fails
(after v9.1.0868)
closes: #16076
Signed-off-by: Christian Brabandt <cb@256bit.org>
mikoto2000 [Mon, 18 Nov 2024 20:12:21 +0000 (21:12 +0100)]
patch 9.1.0871: getcellpixels() can be further improved
Problem: getcellpixels() can be further improved
Solution: Fix floating point exception, implement getcellpixels() in the
UI (mikoto2000)
closes: #16059
Signed-off-by: mikoto2000 <mikoto2000@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
John Marriott [Mon, 18 Nov 2024 19:25:21 +0000 (20:25 +0100)]
patch 9.1.0870: too many strlen() calls in eval.c
Problem: too many strlen() calls in eval.c
Solution: Refactor eval.c to remove calls to STRLEN()
(John Marriott)
closes: #16066
Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
dependabot[bot] [Mon, 18 Nov 2024 18:05:53 +0000 (19:05 +0100)]
CI: Bump codecov/codecov-action from 4 to 5
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4...v5)
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-major
...
closes: #16079
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Christian Brabandt [Sun, 17 Nov 2024 15:18:00 +0000 (16:18 +0100)]
patch 9.1.0869: Problem: curswant not set on gm in folded line
Problem: curswant not set on gm in folded line
(citizenmatt)
Solution: in a folded line, call update_curswant_force()
fixes: #11596
closes: #11994
closes: #15398
Signed-off-by: Christian Brabandt <cb@256bit.org>
Christian Brabandt [Sun, 17 Nov 2024 15:02:41 +0000 (16:02 +0100)]
patch 9.1.0868: the warning about missing clipboard can be improved
Problem: the warning about missing clipboard can be improved
(after v9.1.0852)
Solution: use different warnings depending on whether or not clipboard
support is included in Vim, update related documentation
Improve the Warnings about missing clipboard registers
- Make it translatable
- Use a different warning, when clipboard support was not compiled in
- add a reference to :h W24
- explain in more detail the error message
closes: #16069
Signed-off-by: Christian Brabandt <cb@256bit.org>
Christian Brabandt [Sat, 16 Nov 2024 11:47:06 +0000 (12:47 +0100)]
runtime(doc): Makefile does not clean up all temporary files
Also remove (automatically generated) tags-* (made by make vimtags) and
vim-stylesheet.css (which is produced by vim2html.pl).
related: #16061
Signed-off-by: Christian Brabandt <cb@256bit.org>
glepnir [Fri, 15 Nov 2024 18:58:27 +0000 (19:58 +0100)]
patch 9.1.0867: ins_compl_add() has too many args
Problem: ins_compl_add() has too many args
Solution: refactor it and use an int array instead of 2 separate int
args (glepnir)
closes: #16062
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Luca Saccarola [Fri, 15 Nov 2024 18:53:44 +0000 (19:53 +0100)]
editorconfig: don't trim trailing whitespaces in runtime/doc
closes: #16058
Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Christian Brabandt [Fri, 15 Nov 2024 14:59:52 +0000 (15:59 +0100)]
translation(am): Remove duplicate keys in desktop files
Signed-off-by: Christian Brabandt <cb@256bit.org>
Christian Brabandt [Fri, 15 Nov 2024 14:47:33 +0000 (15:47 +0100)]
runtime(doc): update helptags
Signed-off-by: Christian Brabandt <cb@256bit.org>
Christian Brabandt [Fri, 15 Nov 2024 14:45:53 +0000 (15:45 +0100)]
runtime(filetype): remove duplicated *.org file pattern
related: #16054
Signed-off-by: Christian Brabandt <cb@256bit.org>
Christian Brabandt [Thu, 14 Nov 2024 22:22:31 +0000 (23:22 +0100)]
runtime(cfg): only consider leading // as starting a comment
fixes: #16051
Signed-off-by: Christian Brabandt <cb@256bit.org>
Wu, Zhenyu [Thu, 14 Nov 2024 21:55:36 +0000 (22:55 +0100)]
patch 9.1.0866: filetype: LLVM IR files are not recognized
Problem: filetype: LLVM IR files are not recognized
Solution: detect '*.ll' files either as lifelines or llvm filetype
(Wu, Zhenyu)
closes: #15824
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Luca Saccarola [Thu, 14 Nov 2024 21:44:14 +0000 (22:44 +0100)]
patch 9.1.0865: filetype: org files are not recognized
Problem: filetype: org files are not recognized
Solution: detect '*.org' files as 'org' filetype,
include filetype and syntax plugin
(Luca Saccarola)
closes: #16054
Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Shougo Matsushita [Thu, 14 Nov 2024 21:31:48 +0000 (22:31 +0100)]
patch 9.1.0864: message history is fixed to 200
Problem: message history is fixed to 200
Solution: Add the 'msghistory' option, increase the default
value to 500 (Shougo Matsushita)
closes: #16048
Co-authored-by: Milly <milly.ca@gmail.com>
Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
mikoto2000 [Thu, 14 Nov 2024 21:13:48 +0000 (22:13 +0100)]
patch 9.1.0863: getcellpixels() can be further improved
Problem: getcellpixels() can be further improved
Solution: improve it further, add more tests
(mikoto2000)
closes: #16047
Signed-off-by: mikoto2000 <mikoto2000@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Lukas Zapletal [Thu, 14 Nov 2024 20:50:15 +0000 (21:50 +0100)]
runtime(sh): better function support for bash/zsh in indent script
closes: #16052
Signed-off-by: Lukas Zapletal <lzap+git@redhat.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>