• R/O
  • SSH

vim: List of commits

Mirror of the Vim source from https://github.com/vim/vim


RSS
Rev. Time Author
19e038a1139a v9.1.0264 2024-04-05 05:00:06 Christian Brabandt

patch 9.1.0264: libgpm may delete some signal handlers

Commit: https://github.com/vim/vim/commit/cc59d62215b075c715294ad24a41bfd091cb8d48
Author: Julio B <julio.bacel@gmail.com>
Date: Thu Apr 4 21:55:10 2024 +0200

patch 9.1.0264: libgpm may delete some signal handlers

Problem: libgpm may delete some signal handlers
Solution: restore these signal handlers after calling gpm
(Julio B)

When 'mouse' is set, vim is trying to detect mouse support on startup.
Eventually, vim resorts to using libgpm as the final method of
mouse detection. This library may delete some signals handlers that were
initially set up by vim.

This is how:
- mch_setmouse() calls gpm_open()
- Gpm_Open is executed, which returns early on line 210 [1]
- Keep in mind that lines 353-373 [2] are skipped, so
gpm_saved_suspend_hook and gpm_saved_winch_hook are empty
- Finally, Gpm_Close is called, which will reset [3] SIGWINCH and
SIGTSTP to an empty sigaction.

[1] https://github.com/telmich/gpm/blob/e82d1a653ca94aa4ed12441424da6ce780b1e530/src/lib/liblow.c#L210
[2] https://github.com/telmich/gpm/blob/e82d1a653ca94aa4ed12441424da6ce780b1e530/src/lib/liblow.c#L353-L373
[3] https://github.com/telmich/gpm/blob/e82d1a653ca94aa4ed12441424da6ce780b1e530/src/lib/liblow.c#L419-L424

fixes: #12154
closes: #14401

Signed-off-by: Julio B <julio.bacel@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>

e0059b2d4e2b 2024-04-05 05:00:05 Christian Brabandt

runtime(java): Improve the matching of contextual keywords

Commit: https://github.com/vim/vim/commit/5ccdcc482e299609ae8852a75b22190e38b9b5df
Author: Aliaksei Budavei <0x000c70@gmail.com>
Date: Thu Apr 4 21:51:18 2024 +0200

runtime(java): Improve the matching of contextual keywords

- Recognise a _record_ contextual keyword.
- Recognise _non-sealed_, _sealed_, and _permits_ contextual
keywords.
- Admit _$_ to keyword characters.
- Group _abstract_, _final_, _default_, _(non-)sealed_
(apart from _(non-)sealed_, the incompossibility of these
modifiers calls for attention).
- Remove another _synchronized_ keyword redefinition.

I have also replaced a function with an expression. Before
patch 8.1.0515, it should have been declared :function! to
work with repeatable script sourcing; there is less to worry
about with an expression.

References:
https://openjdk.org/jeps/395 (Records)
https://openjdk.org/jeps/409 (Sealed Classes)
https://docs.oracle.com/javase/specs/jls/se21/html/jls-3.html#jls-3.8

closes: #14403

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>

6f294e4d5b71 2024-04-05 05:00:05 Christian Brabandt

Added tag v9.1.0263 for changeset af48c532bd88f99f754f5602b39784e97ce53630

af48c532bd88 v9.1.0263 2024-04-05 05:00:04 Christian Brabandt

patch 9.1.0263: Vim9: Problem with lambda blocks in enums and classes

Commit: https://github.com/vim/vim/commit/3fa8f7728a47822e4efd106ab30c83c28f198b3c
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Thu Apr 4 21:42:07 2024 +0200

patch 9.1.0263: Vim9: Problem with lambda blocks in enums and classes

Problem: Vim9: Problem with lambda blocks in enums and classes
(Aliaksei Budavei)
Solution: Support evaluating lambda blocks from a string, skip over
comments (Yegappan Lakshmanan)

fixes: #14350
closes: #14405

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

cd738b9a790a 2024-04-05 04:45:04 Christian Brabandt

Added tag v9.1.0262 for changeset 3d063c753d408a7367993703875ab51b15699b06

3d063c753d40 v9.1.0262 2024-04-05 04:45:03 Christian Brabandt

patch 9.1.0262: Test for TextChanged is flaky with ASAN

Commit: https://github.com/vim/vim/commit/4a65391ca273f2eca84f5ec7bd846693232dfacc
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu Apr 4 21:33:36 2024 +0200

patch 9.1.0262: Test for TextChanged is flaky with ASAN

Problem: Test for TextChanged is flaky with ASAN.
Solution: Wait for the file to be non-empty.
(zeertzjq)

closes: #14404

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

f03486fc4b8c 2024-04-05 02:45:12 Christian Brabandt

Added tag v9.1.0261 for changeset d4fb6ea26ae4d33502a7c27f95099918e56aae76

d4fb6ea26ae4 v9.1.0261 2024-04-05 02:45:10 Christian Brabandt

patch 9.1.0261: Vim9: protected class and funcrefs accessible outside the class

Commit: https://github.com/vim/vim/commit/3e33650b3a9939f6b942c1d1eccdb261ea17a647
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Thu Apr 4 19:35:59 2024 +0200

patch 9.1.0261: Vim9: protected class and funcrefs accessible outside the class

Problem: Vim9: protected class and funcrefs accessible outside the class
(Aliaksei Budavei)
Solution: Check if class and object funcrefs are protected
(Yegappan)

closes: #14407

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

1faaf5fdbb06 2024-04-04 06:00:05 Christian Brabandt

Added tag v9.1.0260 for changeset be09936c20c7b339a245dcc8702e83409b626cee

be09936c20c7 v9.1.0260 2024-04-04 06:00:04 Christian Brabandt

patch 9.1.0260: Problems with "zb" and scrolling to new topline with 'smoothscroll'

Commit: https://github.com/vim/vim/commit/bd28cae1f1c21c0e3743e3427c98bbd848fad237
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Wed Apr 3 22:50:40 2024 +0200

patch 9.1.0260: Problems with "zb" and scrolling to new topline with 'smoothscroll'

Problem: "zb" does not reveal filler lines at the start of a buffer.
Scrolled cursor position with 'smoothscroll' is unpredictable,
and may reset skipcol later if it is not visible (after v9.1.258)
Solution: Replace confusing for loop that reaches final control value too
early with while loop. Set "w_curswant" accordingly so cursor
will be placed in visible part of topline.
(Luuk van Baal)

closes: #14394

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>

3b404223f7e8 2024-04-04 06:00:03 Christian Brabandt

runtime(netrw): filetype not detected when editing remote files

Commit: https://github.com/vim/vim/commit/08d2401fbc6de2606aca69add401e2ffca772aa2
Author: Christian Brabandt <cb@256bit.org>
Date: Wed Apr 3 22:44:27 2024 +0200

runtime(netrw): filetype not detected when editing remote files

fixes: https://github.com/vim/vim/issues/14400

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

63dcbb94eefb 2024-04-04 05:45:11 Christian Brabandt

runtime(doc): sort filetype.txt in the alphabetical order (#14395)

Commit: https://github.com/vim/vim/commit/89cc03af71d9beb839d296b78a87869e7a0a8996
Author: K.Takata <kentkt@csc.jp>
Date: Thu Apr 4 05:42:10 2024 +0900

runtime(doc): sort filetype.txt in the alphabetical order (https://github.com/vim/vim/issues/14395)

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>

1af453d63588 2024-04-04 05:45:10 Christian Brabandt

Added tag v9.1.0259 for changeset 82e65843c29dd72d398342aa6d6328356be95402

82e65843c29d v9.1.0259 2024-04-04 05:45:09 Christian Brabandt

patch 9.1.0259: Normal mode TextChanged isn't tested properly

Commit: https://github.com/vim/vim/commit/c422662933275484e61af79d8148898337a5c38e
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed Apr 3 22:38:07 2024 +0200

patch 9.1.0259: Normal mode TextChanged isn't tested properly

Problem: Normal mode TextChanged isn't tested properly.
Solution: Combine Test_Changed_ChangedI() and Test_Changed_ChangedI_2()
and also run it on Windows. Fix a typo in main.c.
(zeertzjq)

closes: #14396

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

9226c9349780 2024-04-03 04:00:08 Christian Brabandt

Added tag v9.1.0258 for changeset b20609f4ab379688e1cd26174754343318995f01

b20609f4ab37 v9.1.0258 2024-04-03 04:00:06 Christian Brabandt

patch 9.1.0258: half-page scrolling broke backward compatibility

Commit: https://github.com/vim/vim/commit/cb204e688e5c9d56a78b621ef27c35d91860cb09
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Tue Apr 2 20:49:45 2024 +0200

patch 9.1.0258: half-page scrolling broke backward compatibility

Problem: Support for 'smoothscroll' in (half-)page scrolling
broke backward compatibility and can be made to work better.
(after v9.1.215)
Solution: Restore the previous cursor and end-of-buffer behavior for
half-page scrolling and improve 'smoothscroll' support.
(Luuk van Baal)

fixes: #14338
closes: #14377

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>

d14cb0d9988c 2024-04-03 04:00:05 Christian Brabandt

Added tag v9.1.0257 for changeset a14868d39709759330ed5e4ef648e0012e6cb1fd

a14868d39709 v9.1.0257 2024-04-03 04:00:04 Christian Brabandt

patch 9.1.0257: Vim9: :call may not find imported class members

Commit: https://github.com/vim/vim/commit/f1750ca0c2ef91c6e4857655ca8fdf8dd8f5abb8
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Tue Apr 2 20:41:04 2024 +0200

patch 9.1.0257: Vim9: :call may not find imported class members

Problem: Vim9: :call may not find imported class members
(mityu)
Solution: Set the typval of an imported lval variable correctly
(Yegappan Lakshmanan)

fixes: #14334
closes: #14386

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

8b2823d22946 2024-04-03 03:45:05 Christian Brabandt

Added tag v9.1.0256 for changeset 63e3334bcadb7b81bdd666584ed8d06633a3f00b

63e3334bcadb v9.1.0256 2024-04-03 03:45:03 Christian Brabandt

patch 9.1.0256: Finding autocmd events is inefficient

Commit: https://github.com/vim/vim/commit/78d742ab8845578f78039ddd71a6444c6929257c
Author: John Marriott <basilisk@internode.on.net>
Date: Tue Apr 2 20:26:01 2024 +0200

patch 9.1.0256: Finding autocmd events is inefficient

Problem: Finding autocmd events is inefficient
Solution: Use binary search to find events, cache last found events,
avoid use of strlen(), add SessionWritePost autocmd,
fix test_codestyle and avoid endless loop
(John Marriott)

closes: #14287

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>

317067ddcba2 2024-04-03 02:15:05 Christian Brabandt

Added tag v9.1.0255 for changeset 1a411f7372398def32589f75c54d50173d5e34a2

1a411f737239 v9.1.0255 2024-04-03 02:15:04 Christian Brabandt

patch 9.1.0255: Vim9: no indication of script nr in stack trace of classes

Commit: https://github.com/vim/vim/commit/16cdfa69e07190674a8e85a48144a467472ca2f4
Author: Ernie Rael <errael@raelity.com>
Date: Tue Apr 2 19:05:39 2024 +0200

patch 9.1.0255: Vim9: no indication of script nr in stack trace of classes

Problem: Vim9: no indication of script nr in stack trace of classes
Solution: Prefix the class name with the script name in the stack trace.
(Ernie Rael)

fixes: #14376
closes: #14390

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

66e88c438206 2024-04-03 02:15:03 Christian Brabandt

Added tag v9.1.0254 for changeset a87c4383404a6ae9dfbaacf8019c8a26d58c5a00

a87c4383404a v9.1.0254 2024-04-03 02:15:02 Christian Brabandt

patch 9.1.0254: [security]: Heap buffer overflow when calling complete_add() in 'cfu'

Commit: https://github.com/vim/vim/commit/0a419e07a705675ac159218f42c1daa151d2ceea
Author: zeertzjq <zeertzjq@outlook.com>
Date: Tue Apr 2 19:01:14 2024 +0200

patch 9.1.0254: [security]: Heap buffer overflow when calling complete_add() in 'cfu'

Problem: [security]: Heap buffer overflow when calling complete_add()
in the first call of 'completefunc'
Solution: Call check_cursor() after calling 'completefunc' (zeertzjq)

closes: #14391

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

0e6516f5b03c 2024-04-03 02:00:12 Christian Brabandt

Added tag v9.1.0253 for changeset a5c094fd033c1fce83c5a3d1ec0d2f0f222d512a

a5c094fd033c v9.1.0253 2024-04-03 02:00:10 Christian Brabandt

patch 9.1.0253: filetype: typespec files are not recognized

Commit: https://github.com/vim/vim/commit/6c9f4f98f1cda3793406724a260cd651210a5d0d
Author: Hilmar Wiegand <me@hwgnd.de>
Date: Tue Apr 2 18:54:54 2024 +0200

patch 9.1.0253: filetype: typespec files are not recognized

Problem: filetype: typespec files are not recognized
Solution: Detect '*.tsp' files as typespec
(Hilmar Wiegand)

Specs is at https://typespec.io/

closes: #14392

Signed-off-by: Hilmar Wiegand <me@hwgnd.de>
Signed-off-by: Christian Brabandt <cb@256bit.org>

b9b335997b26 2024-04-01 22:00:10 Christian Brabandt

runtime(yaml): improve syntax highlighting for YAML

Commit: https://github.com/vim/vim/commit/cc7597c1edf478ad912d45b27f17175236f9791e
Author: itchyny <itchyny@cybozu.co.jp>
Date: Mon Apr 1 14:54:36 2024 +0200

runtime(yaml): improve syntax highlighting for YAML

- Recognize block scalar style to avoid unexpected highlighting by `yamlFlowString` (fix https://github.com/vim/vim/issues/11517)
- Improve performance of `yamlFlowMappingKey` by allowing execution by the NFA engine (fix https://github.com/vim/vim/issues/10730)
- It was intentionally disabled before patterns were optimized by `s:SimplifyToAssumeAllPrintable`.
- Fix detection of flow style mapping indicators (fix #8234).
- Enable highlighting of explicit mapping value indicators and node properties in flow style.
- Add syntax highlighting tests

closes: #14354

Signed-off-by: itchyny <itchyny@cybozu.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>

5c4f88b8d32d 2024-04-01 22:00:10 Christian Brabandt

Added tag v9.1.0252 for changeset 529709e74c1145c60b787a2c79b740fae20d9f4d

529709e74c11 v9.1.0252 2024-04-01 22:00:09 Christian Brabandt

patch 9.1.0252: Vim9: segfault with static in super class

Commit: https://github.com/vim/vim/commit/2ed5a11b1a84c86b5392110a81302ae038b5c554
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Mon Apr 1 14:50:41 2024 +0200

patch 9.1.0252: Vim9: segfault with static in super class

Problem: Vim9: segfault with static in super class
(Ernie Rael)
Solution: When initializing lhs, use the correct class where a class
variable is defined (Yegappan Lakshmanan)

fixes: #14352
closes: #14372

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

3c8a347586a6 2024-04-01 22:00:08 Christian Brabandt

Added tag v9.1.0251 for changeset d537272fa5038e1fd9b8359da4cb0dfb046ac1c2

Show on old repository browser