kevinhwang91
19d4926f5a
vim-patch:8.2.0959: using 'quickfixtextfunc' is a bit slow
...
Problem: Using 'quickfixtextfunc' is a bit slow.
Solution: Process a list of entries. (Yegappan Lakshmanan, closes vim/vim#6234 )
00e260bb6c
2021-05-20 00:24:22 +08:00
kevinhwang91
00246d7be5
vim-patch:8.2.0933: 'quickfixtextfunc' does not get window ID of location list
...
Problem: 'quickfixtextfunc' does not get window ID of location list.
Solution: Add "winid" to the dict argument. (Yegappan Lakshmanan,
closes vim/vim#6222 )
7ba5a7eff3
2021-05-20 00:19:25 +08:00
kevinhwang91
ebe1a08366
vim-patch:8.2.0869: it is not possible to customize the quickfix window contents
...
Problem: It is not possible to customize the quickfix window contents.
Solution: Add 'quickfixtextfunc'. (Yegappan Lakshmanan, closes vim/vim#5465 )
858ba06d5f
2021-05-20 00:16:07 +08:00
Thomas Vigouroux
237175cf20
fix(bufupdate): send events when inserting with virtualedit
...
Problem first raised
https://github.com/nvim-treesitter/nvim-treesitter/issues/1304
2021-05-18 19:31:56 +02:00
James McCoy
88ee095d42
fix(job): Deduplicate env var names on Windows
...
Windows handles environment variable names case-insensitively (i.e.,
%Path% can be accessed via %PATH%). Since nvim explicitly creates the
environment block for jobs, we need to ensure it doesn't contain
duplicate names with different cases (e.g., both %Path% and %PATH%) as
that can confuse processes using the environment.
`f_environ()` now converts all env var names to upper-case on Windows,
since it does duplicate detection and also provides the base environment
for jobs. Similarly, `create_environment()` converts any env var names
supplied in the job opts to upper-case so they can be compared against
what we get from `f_environ()`.
Closes #14541
2021-05-18 08:53:08 -04:00
James McCoy
0368591bb4
fix(tui): Stop sending extra parameter for save/restore title
...
Closes #14573
2021-05-18 07:18:50 -04:00
Jan Edmund Lazo
dc18c1e3ee
win/package: update wintools.zip for curl v7.76.1 ( #14570 )
...
https://github.com/neovim/neovim/issues/14078
2021-05-17 14:57:46 +02:00
Jan Edmund Lazo
dab6b08a1e
Merge pull request #14406 from shadmansaleh/vim-8.2.0877
...
vim-patch:8.2.{0877, 0880, 0884, 0887, 0896} - port searchcount()
2021-05-15 20:57:50 -04:00
Jan Edmund Lazo
6ab83f3572
Add 'FUNC_ATTR_NONNULL_RET' to nonnull alloc funcs ( #14559 )
2021-05-15 20:36:13 -04:00
Shadman
d67dcaba02
vim-patch:8.2.2854: custom statusline cannot contain % items ( #14558 )
...
Problem: Custom statusline cannot contain % items.
Solution: Add "%{% expr %}". (closes vim/vim#8190 )
30e3de21fc
2021-05-15 13:10:41 -04:00
Björn Linse
0cd1430316
Merge pull request #14468 from bfredl/zindex
...
[WIP] z-index!
2021-05-15 14:44:22 +02:00
Björn Linse
edb5864a29
floats: z-index
2021-05-15 13:56:27 +02:00
Jan Edmund Lazo
520b925627
vim-patch:8.2.2850: recalling commands from history is not tested
...
Problem: Recalling commands from history is not tested.
Solution: Add tests. (closes vim/vim#8194 )
71c6f7a665
2021-05-13 23:57:24 -04:00
Jan Edmund Lazo
5110ef9171
fixup! vim-patch:8.1.1228: not possible to process tags with a function
2021-05-13 21:00:28 -04:00
Jan Edmund Lazo
30987b9190
fixup! vim-patch:8.0.1449: slow redrawing with DirectX
2021-05-13 21:00:28 -04:00
Jan Edmund Lazo
cc798c626a
vim-patch:8.0.1394: cannot intercept a yank command
...
Problem: Cannot intercept a yank command.
Solution: Add the TextYankPost autocommand event. (Philippe Vaucher et al.,
closes vim/vim#2333 )
7e1652c63c
2021-05-13 20:47:27 -04:00
Jan Edmund Lazo
c9195a1273
vim-patch:8.2.2473: crash when leaving command line window triggers autocommand
...
Problem: Crash when leaving command line window triggers autocommand.
(houyunsong)
Solution: Make sure not to close the current window or buffer.
8c6951fa28
N/A patches for version.c:
vim-patch:8.2.2414: using freed memory when closing the cmdline window
Problem: Using freed memory when closing the cmdline window.
Solution: Check the window is still valid.
b7e2670b6a
2021-05-13 20:47:26 -04:00
Jan Edmund Lazo
e9804aead6
lint
2021-05-13 20:47:26 -04:00
Jan Edmund Lazo
07f6f12cf5
vim-patch:8.2.2433: opening cmdline window gives error in BufLeave autocommand
...
Problem: Opening cmdline window gives error in BufLeave autocommand.
Solution: Reset cmdwin_type when triggering the autocommand.
b63f3ca66d
2021-05-13 20:47:26 -04:00
Jan Edmund Lazo
3f9fa730ce
vim-patch:8.2.2419: autocmd test was failing on MS-Windows with GUI
...
Problem: Autocmd test was failing on MS-Windows with GUI.
Solution: Remove stray feedkeys().
d697ddea14
2021-05-13 20:47:26 -04:00
Jan Edmund Lazo
1ca89a60d8
vim-patch:8.2.2359: strange test failure with MS-Windows
...
Problem: Strange test failure with MS-Windows.
Solution: Skip the system() call for now.
e2924328c1
2021-05-13 20:47:26 -04:00
Jan Edmund Lazo
f98433d82a
vim-patch:8.2.2354: crash with a weird combination of autocommands
...
Problem: Crash with a weird combination of autocommands.
Solution: Increment b_nwindows when needed. (closes vim/vim#7674 )
797e63b9f2
2021-05-13 20:47:26 -04:00
Jan Edmund Lazo
4338077632
Revert "XXX: ex_tabonly(): aucmd_win is not part of the window list."
...
This reverts commit 7214d0bc84 .
Cannot test patch v8.2.1059 without reverting this commit.
2021-05-13 20:47:25 -04:00
Jan Edmund Lazo
f54a938271
vim-patch:8.2.1059: crash when using :tabonly in an autocommand
...
Problem: Crash when using :tabonly in an autocommand. (Yegappan Lakshmanan)
Solution: Do not allow the autocommand window to be closed.
cf8441704d
E813 error message does not mention 'popup' window
because Neovim floating window are regular windows, unlike Vim popups.
https://github.com/neovim/neovim/pull/14532#discussion_r631731829
2021-05-13 20:46:00 -04:00
Jan Edmund Lazo
7339290900
vim-patch:8.2.1000: get error when leaving Ex mode with :visual
...
Problem: Get error when leaving Ex mode with :visual and a CmdLineEnter
autocommand was used.
Solution: Reset ex_pressedreturn. (closes vim/vim#6293 )
158ea175a9
2021-05-12 19:13:28 -04:00
Jan Edmund Lazo
d5b9a7d6e8
vim-patch:8.2.0023: command line editing not sufficiently tested
...
Problem: Command line editing not sufficiently tested.
Solution: Add more tests. (Dominique Pelle, closes vim/vim#5374 )
59cb041d0a
Ported to commit test_ex_mode.vim for later patches.
Test fails because feedkeys() filters out modifier keys on output.
2021-05-12 19:13:28 -04:00
Jan Edmund Lazo
dad725d5e5
vim-patch:8.1.1967: line() only works for the current window
...
Problem: Line() only works for the current window.
Solution: Add an optional argument for the window to use.
8e0a8e7eb7
2021-05-12 19:13:28 -04:00
Jan Edmund Lazo
89e29e8774
fixup! refactor nvim_buf_set_lines to use extmark_splice
2021-05-12 19:13:28 -04:00
Marco Hinz
4ba3d059bf
Revert "vim-patch:8.1.1378: delete() can not handle a file name that looks like a pattern ( #12784 )"
...
This reverts commit 4be0e92db0 .
Unfortunately, that commit stalled the Windows builds on GHA and likely requires
other patches to work properly.
2021-05-12 00:47:21 +02:00
Björn Linse
7d82ea0102
Merge pull request #14243 from shadmansaleh/Allow_cterm_colors_nvim_set_hl
...
API: Adding cterm support to nvim_set_hl
2021-05-11 15:07:00 +02:00
Jan Edmund Lazo
7af26e5116
Revert "api/window: use the "noblock" variants in nvim_win_set_buf"
...
This reverts commit 1def3d1542 .
Plugins may depend on catching the following events
when creating windows:
- BufWinEnter
- BufEnter
- BufLeave
Risky to introduce this breaking change on 0.5 release
when 0.5 release should be out by now.
https://github.com/asvetliakov/vscode-neovim/issues/632#issuecomment-837201224
2021-05-10 18:32:26 -04:00
Björn Linse
133351cbf8
Merge pull request #14528 from disrupted/fix/nvim_buf_set_lines
...
Fix nvim_buf_set_lines
2021-05-10 23:18:14 +02:00
Shadman
7b0edaac56
lua: use WarningMsg for vim.notify() warnings ( #14508 )
2021-05-10 14:26:39 +02:00
disrupted
81dc647961
Apply patch from clason
2021-05-10 13:47:22 +02:00
disrupted
e5c22f6347
Fix nvim_buf_set_lines
2021-05-10 13:31:06 +02:00
Viktor Kojouharov
5ea9cbc280
Update the functio documentation in C
2021-05-10 11:27:48 +02:00
chentau
13a9bd006f
make get_region_bytecount end-exclusive
2021-05-09 16:23:01 -07:00
chentau
a847abc21b
refactor nvim_buf_set_lines to use extmark_splice
2021-05-09 16:22:20 -07:00
Jan Edmund Lazo
d2be261e8d
Merge pull request #14403 from seandewar/vim-8.2.1933
...
vim-patch:8.2.{0174,1933,1935,1946,2286,2287}
2021-05-09 17:08:21 -04:00
shadmansaleh
2bb22ce567
STRLEN -> strlen
2021-05-09 07:18:54 +06:00
shadmansaleh
1f952e34f2
Use bool for boolean values
2021-05-09 06:51:59 +06:00
shadmansaleh
da22be9f33
vim-patch:8.2.0896: crash when calling searchcount() with a string
...
Problem: Crash when calling searchcount() with a string.
Solution: Check the argument is a dict. (closes vim/vim#6192 )
14681627f3
2021-05-09 06:37:02 +06:00
shadmansaleh
973ecd8e90
vim-patch:8.2.0887: searchcount().exact_match is 1 right after a match
...
Problem: Searchcount().exact_match is 1 right after a match.
Solution: Use LT_POS() instead of LTOREQ_POS(). (closes vim/vim#6189 )
57f75a5a36
2021-05-09 06:37:02 +06:00
shadmansaleh
5c404ad0fa
vim-patch:8.2.0884: searchcount() test fails on slower systems
...
Problem: Searchcount() test fails on slower systems.
Solution: Set a longer timeout.
ea6561af92
2021-05-09 06:37:01 +06:00
shadmansaleh
420344324e
vim-patch:8.2.0880: leaking memory when using searchcount()
...
Problem: Leaking memory when using searchcount().
Solution: Free the last used search pattern.
109aece79d
2021-05-09 06:37:01 +06:00
shadmansaleh
e498f265f4
vim-patch:8.2.0877: cannot get the search statistics
...
Problem: Cannot get the search statistics.
Solution: Add the searchcount() function. (Fujiwara Takuya, closes vim/vim#4446 )
e8f5ec0d30
Additional changes:
- Tests weren't passing because the test ran assuming the cursor was at
start of buffer but append() left the cursor at end of buffer .
So cursor is moved to start of buffer after append.
- searchcount() added to list of builtin functions.
2021-05-09 06:37:01 +06:00
Jan Edmund Lazo
ec04d37188
vim-patch:8.2.2839: default redirection missing "ash" and "dash"
...
Problem: Default redirection missing "ash" and "dash".
Solution: Recognize "ash" and "dash". (Natanael Copa, closes vim/vim#8180 )
5631836975
2021-05-08 08:23:44 -04:00
Jan Edmund Lazo
6fcd96250b
vim-patch:8.2.2838: file extension .wrap not recognized
...
Problem: File extension .wrap not recognized.
Solution: Use dosini filetype for .wrap files. (Liam Beguin, closes vim/vim#8177 )
e3e598e82b
2021-05-08 08:17:49 -04:00
Jan Edmund Lazo
5165513198
Merge pull request #13664 from ivechan/win_exectute
...
vim-patch:8.1.{1418,1425,1832,2124},8.2.{0137, 2340}
2021-05-07 08:34:28 -04:00
Shougo
4be0e92db0
vim-patch:8.1.1378: delete() can not handle a file name that looks like a pattern ( #12784 )
...
Problem: Delete() can not handle a file name that looks like a pattern.
Solution: Use readdir() instead of appending "/*" and expanding wildcards.
(Ken Takata, closes vim/vim#4424 , closes vim/vim#696 )
701ff0a3e5
2021-05-07 08:07:13 -04:00