Gregory Anders
f94f75dc05
refactor!: rename nvim_add_user_command to nvim_create_user_command
2022-04-10 20:18:41 -06:00
zeertzjq
9da0023a66
feat(keymap): add F38-F63 keys ( #17893 )
2022-04-11 09:54:59 +08:00
Loong Wang
b2cb05b53e
feat(events): support SIGWINCH for Signal event #18029
...
closes #15411
2022-04-10 15:56:08 -07:00
zeertzjq
8bdcd832ae
refactor(globals.h): avoid confusing comment placement ( #18066 )
...
These comments were indented in Vim, but their indent was removed in
Nvim, causing them to be placed in a confusing place.
2022-04-10 21:22:22 +08:00
UnkwUsr
8f3845cdb7
docs: remove mentions of removed flag '#' in 'cpoptions' ( #18064 )
2022-04-10 14:58:01 +02:00
Christian Clason
b438bb4343
vim-patch:8.2.4729: HEEx and Surface templates do not need a separate filetype ( #18065 )
...
Problem: HEEx and Surface templates do not need a separate filetype.
Solution: Use Eelixir for the similar filetypes. (Aaron Tinio, closes vim/vim#10124 )
fa76a24109
2022-04-10 13:53:33 +02:00
zeertzjq
b531e4ea33
Merge pull request #18062 from zeertzjq/vim-8.2.4723
...
vim-patch:8.2.{4723,4728}: the ModeChanged autocmd event is inefficient
2022-04-10 19:14:29 +08:00
zeertzjq
381f8f86da
vim-patch:8.2.4728: no test that v:event cannot be modified
...
Problem: No test that v:event cannot be modified.
Solution: Add a test. (closes vim/vim#10139 )
021996ffaa
2022-04-10 18:45:16 +08:00
zeertzjq
263a7fde35
vim-patch:8.2.4723: the ModeChanged autocmd event is inefficient
...
Problem: The ModeChanged autocmd event is inefficient.
Solution: Avoid allocating memory. (closes vim/vim#10134 ) Rename
trigger_modechanged() to may_trigger_modechanged().
2bf52dd065
Make v:event readonly for ModeChanged.
2022-04-10 08:02:22 +08:00
zeertzjq
ff726cc569
vim-patch:8.2.4719: ">" marker sometimes not displayed in the jumplist ( #18056 )
...
Problem: ">" marker sometimes not displayed in the jumplist.
Solution: If the buffer no longer exists show "-invalid-". (Christian
Brabandt, closes vim/vim#10131 , closes vim/vim#10100 )
a0f659c76e
Add a modeline to test_jumplist.vim
2022-04-10 07:13:22 +08:00
zeertzjq
12662ac0c4
vim-patch:8.2.4722: ending recording with mapping records too much ( #18060 )
...
Problem: When a recording is ended with a mapped key that key is also
recorded.
Solution: Remember the previous last_recorded_len. (closes vim/vim#10122 )
81b46a6ccd
2022-04-10 06:45:27 +08:00
zeertzjq
2a2c4e191f
vim-patch:8.2.4718: @@@ in the last line sometimes drawn in the wrong place ( #18055 )
...
Problem: @@@ in the last line sometimes drawn in the wrong place.
Solution: Make sure the column is valid. (closes vim/vim#10130 )
cee9c844f2
2022-04-10 04:50:49 +08:00
Christian Clason
61bd5426f4
vim-patch:8.2.4721: cooklang files are not recognized ( #18058 )
...
Problem: Cooklang files are not recognized.
Solution: recognize *.cook files. (Goc Dundar, closes vim/vim#10120 )
36951ed1da
2022-04-09 17:43:33 +02:00
Christian Clason
3280dc2b60
vim-patch:8.2.4720: ABB Rapid files are not recognized properly ( #18057 )
...
Problem: ABB Rapid files are not recognized properly.
Solution: Add checks for ABB Rapid files. (Patrick Meiser-Knosowski,
closes #10104 )
b09c320039
2022-04-09 17:42:46 +02:00
zeertzjq
f3183a4d7c
Merge pull request #18023 from tom-anders/vim-8.2.4702
...
vim-patch:8.2.{4702,4703}: C++ scope labels are hard-coded
2022-04-09 22:13:34 +08:00
Tom Praschan
bf39c5fe4f
vim-patch:8.2.4703: memory leak in handling 'cinscopedecls'
...
Problem: Memory leak in handling 'cinscopedecls'.
Solution: Free the memory before returning.
cb49a1d934
2022-04-09 15:39:48 +02:00
Tom Praschan
45f62464d3
vim-patch:8.2.4702: C++ scope labels are hard-coded
...
Problem: C++ scope labels are hard-coded.
Solution: Add 'cinscopedecls' to define the labels. (Tom Praschan,
closes vim/vim#10109 )
3506cf34c1
2022-04-09 15:39:46 +02:00
Christian Clason
8055f9857b
vim-patch:8.2.4715: Vagrantfile not recognized ( #18052 )
...
Problem: Vagrantfile not recognized.
Solution: Recognize Vagrantfile as ruby. (Julien Voisin, closes vim/vim#10119 )
5e1792270a
2022-04-09 11:19:18 +02:00
Henry Fraser
b259426a25
chore(packaging): use transparent windows logo ( #18051 )
2022-04-09 10:31:11 +02:00
zeertzjq
fda9adab5d
vim-patch:partial:8.1.2333: with modifyOtherKeys CTRL-^ doesn't work ( #18048 )
...
Problem: With modifyOtherKeys CTRL-^ doesn't work.
Solution: Handle the exception.
828ffd5963
2022-04-09 13:31:42 +08:00
Sean Dewar
012c055804
vim-patch:partial:cbaff5e06ec5 ( #18044 )
...
Update runtime files
cbaff5e06e
Docs only.
Omit json_encode (different impl, Nvim throws E474 instead; see v8.2.4695).
Skip <MouseMove> (Nvim *kinda* has <MouseMove>, but most of this doc needs
v8.2.4674 anyway...).
Nvim's 'hidden' doc was reworded somewhat, so manually integrate the changes
(8331cd13c4
).
Also apply "comma-separated" changes to all possible places in options.txt.
Cherry-pick *highlight-clear* tag from v8.2.3578.
2022-04-08 22:40:56 +02:00
Christian Clason
d3068d34cc
vim-patch:partial:cbaff5e06ec5 ( #18042 )
...
Update runtime files
cbaff5e06e
omit doc updates here
2022-04-08 19:53:41 +02:00
bfredl
b4ec6af12a
Merge pull request #17971 from chentau/extmark_spell
...
fix(extmarks): splice extmarks on accepting spell
2022-04-08 19:09:48 +02:00
Christian Clason
d3603e157a
build(deps): bump LuaJIT to HEAD - 5e3c45c43 ( #18027 )
2022-04-08 16:59:40 +02:00
bfredl
c26d70d581
Merge pull request #17786 from gpanders/autocmd-args
...
feat(api)!: pass args table to autocommand callbacks
2022-04-08 16:55:47 +02:00
Gregory Anders
30bc02c636
feat(api)!: pass args table to autocommand callbacks
2022-04-08 15:12:54 +02:00
zeertzjq
56ee7c29ab
Merge pull request #18038 from zeertzjq/vim-8.2.4711
...
vim-patch:8.2.4711: when 'insermode' is set :edit from <Cmd> mapping misbehaves
2022-04-08 20:17:25 +08:00
zeertzjq
b099bb1f2f
test: add a test for #16823
2022-04-08 19:25:37 +08:00
zeertzjq
38506553f7
vim-patch:8.2.4711: when 'insermode' is set :edit from <Cmd> mapping misbehaves
...
Problem: When 'insermode' is set :edit from <Cmd> mapping misbehaves.
Solution: Don't set "need_start_insertmode" when already in Insert mode.
(closes vim/vim#10116 )
3a56b6d405
2022-04-08 19:02:37 +08:00
zeertzjq
2c7dc648ca
vim-patch:8.2.3925: diff mode confused by NUL bytes ( #18033 )
...
Problem: Diff mode confused by NUL bytes.
Solution: Handle NUL bytes differently. (Christian Brabandt, closes vim/vim#9421 ,
closes vim/vim#9418 )
06f6095623
2022-04-08 10:45:42 +08:00
zeertzjq
356baae80a
vim-patch:8.2.4704: using "else" after return or break increases indent ( #18032 )
...
Problem: Using "else" after return or break increases indent.
Solution: Remove "else" and reduce indent. (Goc Dundar, closes vim/vim#10099 )
f26c16144d
2022-04-08 10:25:22 +08:00
zeertzjq
4c9a71c69e
Merge pull request #18031 from zeertzjq/vim-8.2.0004
...
vim-patch:8.2.{0004,4700,4706}: buffer closing is interrupted
2022-04-08 10:23:55 +08:00
zeertzjq
191f009ab7
vim-patch:8.2.4706: buffer remains active with WinClosed and tabpages
...
Problem: Buffer remains active if a WinClosed event throws an exception
when there are multiple tabpages.
Solution: Ignore aborting() when closing the buffer. (closes vim/vim#10101 )
6a06940f8a
2022-04-08 08:54:07 +08:00
zeertzjq
b7bc931f63
vim-patch:8.2.4700: buffer remains active if WinClosed event throws an exception
...
Problem: Buffer remains active if a WinClosed event throws an exception.
Solution: Ignore aborting() when closing the buffer. (closes vim/vim#10097 )
c947b9ae41
2022-04-08 08:54:07 +08:00
zeertzjq
44b59d1a69
vim-patch:8.2.0004: get E685 and E931 if buffer reload is interrupted
...
Problem: Get E685 and E931 if buffer reload is interrupted.
Solution: Do not abort deleting a dummy buffer. (closes vim/vim#5361 )
a6e8f888e7
2022-04-08 08:54:07 +08:00
zeertzjq
8f3245dbfa
refactor(window): cherry-pick win_close_buffer() from Vim patch 8.1.1391
2022-04-08 08:54:03 +08:00
zeertzjq
65a5cea0d3
vim-patch:8.2.4710: smart indenting does not work after completion ( #18030 )
...
Problem: Smart indenting does not work after completion.
Solution: Set "can_si". (Christian Brabandt, closes vim/vim#10113 , closes vim/vim#558 )
ac72c21da6
2022-04-08 07:12:47 +08:00
Christian Clason
8c25dbff46
vim-patch:8.2.4708: PHP test files are not recognized ( #18025 )
...
Problem: PHP test files are not recognized.
Solution: Add the *.phpt pattern. (Julien Voisin, closes vim/vim#10112 )
177847e67a
2022-04-07 20:24:55 +02:00
Abraham Francis
0d2674a3c5
ci: add script to bump versions ( #17884 )
...
* ci: add script for bumping dependencies
* docs: add usage information for bump-deps.sh
2022-04-07 17:41:48 +02:00
zeertzjq
1edca3872e
vim-patch:8.2.4707: redrawing could be a bit more efficient ( #18022 )
...
Problem: Redrawing could be a bit more efficient.
Solution: Optimize redrawing. (closes vim/vim#10105 )
8c97960850
2022-04-07 23:26:03 +08:00
zeertzjq
abc157a6fd
Merge pull request #18021 from zeertzjq/fix-clearing-reg-executing
...
Fix clearing of reg_executing
2022-04-07 22:40:01 +08:00
zeertzjq
64802da6c4
fix(event-loop): check if executed register has ended
2022-04-07 21:42:11 +08:00
zeertzjq
2a574f7aaa
fix(input): fix clearing of reg_executing
...
vim-patch:8.2.4705
2022-04-07 21:42:07 +08:00
bfredl
dc9e436986
Merge pull request #17979 from zeertzjq/autocmd-show-fix
...
fix(autocmd): restore autocmd showing behavior
2022-04-07 11:42:16 +02:00
Christian Clason
f85f4e25d2
vim-patch:8.2.4701: Kuka Robot Language files not recognized ( #18012 )
...
Problem: Kuka Robot Language files not recognized.
Solution: Recognize *.src and *.dat files. (Patrick Meiser-Knosowski,
closes vim/vim#10096 )
3ad2090316
2022-04-07 09:09:08 +02:00
zeertzjq
233014f92b
vim-patch:8.2.0836: not all :cdo output is visible ( #18007 )
...
Problem: Not all :cdo output is visible.
Solution: Reset 'shortmess' temporarily. (Yegappan Lakshmanan, closes vim/vim#6155 )
14798ab9a5
Cherry pick relevant changes form patches 8.1.1826 and 8.2.0557.
2022-04-06 12:04:19 +08:00
zeertzjq
74a27748e6
fix(autocmd): restore autocmd showing behavior
2022-04-06 05:44:30 +08:00
zeertzjq
128bedc0d2
vim-patch:8.2.4696: delete() with "rf" argument does not report a failure ( #18002 )
...
Problem: delete() with "rf" argument does not report a failure.
Solution: Return -1 if the directory could not be removed. (closes vim/vim#10078 )
478700336d
2022-04-06 05:12:49 +08:00
bfredl
f86f74c12f
Merge pull request #18003 from bfredl/incperf2
...
fix(ui): inccomand performance degradation
2022-04-05 21:23:27 +02:00
KillTheMule
54cec455cc
fix(ui): inccomand performance degradation
...
It was broken since the introduction of the macro.
2022-04-05 20:21:43 +02:00