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
Stephan Seitz
5c9b4948d4
treesitter: do not escape in match? ( #14382 )
2021-05-11 11:52:47 +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
Björn Linse
26139d3085
Merge pull request #14501 from chentau/extmark_setlines
...
Refactor nvim_buf_set_lines to use `extmark_splice` instead of `extmark_adjust`
2021-05-10 09:37:47 +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
f8173df4d7
Merge pull request #14517 from janlazo/vim-8.2.2838
...
vim-patch:8.2.{2838,2839}
2021-05-08 12:54:31 -04:00
Jan Edmund Lazo
cd5fde6e6c
neovim-qt: v0.2.16.1 ( #14514 )
...
nvim-qt --help/version should work without $DISPLAY
https://github.com/equalsraf/neovim-qt/compare/v0.2.16...v0.2.16.1
2021-05-08 12:17:25 -04: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
Marco Hinz
17434b88b4
checkhealth: ignore 'wildignore' when seeking executables ( #14495 )
...
Certain values of 'wildignore', .e.g `*/node_modules/**`, would make the
provider checks not find the right executables.
Fixes https://github.com/neovim/neovim/issues/14388
2021-05-07 11:07:07 +02:00
Björn Linse
8c9f0f1da1
Merge pull request #14502 from chentau/extmark_paste
...
Splice extmarks on every line for block visual paste
2021-05-07 10:52:36 +02:00
chentau
37c8067226
splice extmarks on every line for block visual paste
2021-05-06 20:40:26 -07:00
James McCoy
21035cff9f
Merge pull request #14500 from jamessan/coverity-fixes
...
Various Coverity fixes
2021-05-06 19:28:36 -04:00
James McCoy
efed75f916
coverity/331377: os_fopen: Remove invalid iflags assert
...
If the O_* flags were non-zero, then ORing the flags would always be
true. However, the O_* flags aren't guaranteed to be non-zero, so the
assert is invalid in the first place.
2021-05-06 18:57:22 -04:00
James McCoy
d9eaca99be
coverity/331399: Remove unused "term_name" member from PtyProcess
2021-05-06 18:57:22 -04:00
James McCoy
d4fd139c2a
coverity/331366: fname_trans_sid: Avoid buffer overrun
...
Since we're printf()ing into an offset of fname_buf, we need to reduce
the max length by the same amount.
2021-05-06 18:57:21 -04:00
Michael Lingelbach
a3e914b64c
Merge pull request #14507 from fsouza/add-test-for-jumplist-fix
...
lsp: add a test for the jump_to_location + jump list fix
2021-05-06 15:57:10 -07:00
James McCoy
9bdbac6712
coverity/331382: Allocate enough space for trailing NUL
2021-05-06 18:56:57 -04:00
James McCoy
f6d4226f4d
coverity/188735: last_nonfloat: Ensure wp is non-NULL before dereferencing
2021-05-06 18:56:56 -04:00
James McCoy
833a6fcb60
coverity/331378: Fix inserting new decor provider
...
Since the providers are ordered by ns_id, inserting a new provider may
require shifting existing providers around to maintain this ordering.
When this happens, we need to allocate a new element at the end of the
vector and then shift the larger elements to the right. Rather than
iterating (incorrectly) with a loop and copying each item, use memmove
to copy the entire block.
2021-05-06 18:56:56 -04:00
francisco souza
9149fe48a9
lsp: add a test for the jump_to_location + jump list fix
2021-05-06 17:56:24 -04:00
jing
1def3d1542
api/window: use the "noblock" variants in nvim_win_set_buf
...
after commit 92c6383cdca977("vim-patch:8.1.1425: win_execute() does not set window pointers properly"),
nvim_win_set_buf can use switch_win_noblock and restore_win_noblock.
It makes nvim_win_set_buf don't block autocmds so that it will be more
"without side-effects" as said in help text.
Signed-off-by: jing <lhchenjw@gmail.com>
2021-05-06 23:45:16 +08:00
jing
03b3ff8610
vim-patch:8.2.2340: win_execute() unexpectedly returns number zero when failing
...
Problem: win_execute() unexpectedly returns number zero when failing.
Solution: Return an empty string. (closes vim/vim#7665 )
37487e16da
2021-05-06 23:45:16 +08:00
jing
8fecc5fab8
vim-patch:8.2.0137: crash when using win_execute() from a new tab
...
Problem: Crash when using win_execute() from a new tab.
Solution: Set the tp_*win pointers. (Ozaki Kiichi, closes vim/vim#5512 )
a44b3eeafa
2021-05-06 23:45:16 +08:00
jing
ec3524da29
vim-patch:8.1.2124: ruler is not updated if win_execute() moves cursor
...
Problem: Ruler is not updated if win_execute() moves cursor.
Solution: Update the status line. (closes vim/vim#5022 )
345f28df54
2021-05-06 23:45:16 +08:00
jing
73154bbae0
vim-patch:8.1.1832: win_execute() does not work in other tab
...
Problem: Win_execute() does not work in other tab. (Rick Howe)
Solution: Take care of the tab. (closes vim/vim#4792 )
820680b9ff
2021-05-06 23:45:16 +08:00
jing
3c00252248
vim-patch:8.1.1440: win_execute() test fails
...
Problem: Win_execute() test fails.
Solution: Adjust the expected error number. Move to popup test.
2d247849ce
2021-05-06 23:45:16 +08:00
jing
97abf8ee63
vim-patch:8.1.1425: win_execute() does not set window pointers properly
...
Problem: Win_execute() does not set window pointers properly.
Solution: Use switch_win_noblock(). Also execute autocommands in a popup
window.
89adc3a137
2021-05-06 23:45:16 +08:00
jing
f6518e5516
vim-patch:8.1.1418: win_execute() is not implemented yet
...
Problem: Win_execute() is not implemented yet.
Solution: Implement it.
868b7b6712
2021-05-06 23:44:47 +08:00
Jan Edmund Lazo
71107e12c7
Merge pull request #14499 from janlazo/vim-8.2.2819
...
vim-patch:8.0.1309,8.2.{1166,2819,2820,2825,2827,2828,2829,2832,2833}
2021-05-06 09:00:24 -04:00
Jan Edmund Lazo
296711cfad
vim-patch:8.2.2829: some comments are not correct or clear
...
Problem: Some comments are not correct or clear.
Solution: Adjust the comments. Add test for cursor position.
df36514a64
2021-05-06 00:55:30 -04:00
Jan Edmund Lazo
dad17caa87
lint
2021-05-06 00:42:20 -04:00
Jan Edmund Lazo
de299724cd
vim-patch:8.2.2833: two key command cancelled by moving mouse when using popup
...
Problem: Two key command cancelled by moving mouse when using popup.
(Sergey Vlasov)
Solution: Ignore K_MOUSEMOVE in plain_vgetc().
3a00659db7
2021-05-06 00:32:35 -04:00
Jan Edmund Lazo
0be0f9895d
vim-patch:8.2.2832: operator cancelled by moving mouse when using popup
...
Problem: Operator cancelled by moving mouse when using popup. (Sergey
Vlasov)
Solution: Do not trigger an operator for a mouse move events. (closes vim/vim#8176 )
1ad72c8eb6
2021-05-06 00:31:18 -04:00