Gustavo Sampaio
ece0850b73
fix(session): respect sessionoptions=terminal #19497
...
fixes #13078
Co-authored-by: Yuta Katayama <8683947+yutkat@users.noreply.github.com>
2022-08-01 05:13:46 -07:00
Munif Tanjim
86110ec933
fix(highlight): add missing 'nocombine' to nvim_get_hl_* apis ( #19586 )
2022-07-31 13:38:00 +02:00
Shougo
c1652bdcb5
cmdheight=0: fix bugs part2 ( #19185 )
2022-07-31 13:13:19 +08:00
zeertzjq
0ae94a128f
test: rewrite Test_missing_attr() in Lua
2022-07-31 08:51:20 +08:00
zeertzjq
d36d9be8ff
fix(terminal): avoid reading over the end of cell.chars ( #19580 )
2022-07-30 21:40:30 +08:00
zeertzjq
e59bc078de
fix(screen): check for col instead of vcol when drawing fold ( #19572 )
2022-07-29 21:47:21 +08:00
zeertzjq
f254fc67a5
vim-patch:9.0.0099: scrollback can be wrong after redrawing the command line ( #19562 )
...
Problem: Scrollback can be wrong after redrawing the command line.
Solution: Clear unfinished scrollback when redrawing. (closes vim/vim#10807 )
46af7bc08d
2022-07-28 20:07:32 +08:00
zeertzjq
f57432af4d
vim-patch:9.0.0090: no error when assigning bool to a string option ( #19539 )
...
Problem: No error when assigning bool to a string option with setwinvar().
Solution: Give an error (closes vim/vim#10766 )
28f84e17b0
2022-07-27 20:59:43 +08:00
zeertzjq
79872f3770
fix(options): properly free string options ( #19510 )
2022-07-27 07:26:32 +08:00
zeertzjq
fc55f8263c
vim-patch:9.0.0086: tabline is not redrawn when entering command line
...
Problem: Tabline is not redrawn when entering command line.
Solution: Set "redraw_tabline". (closes vim/vim#10771 )
6791adca53
2022-07-27 06:32:40 +08:00
zeertzjq
9f1dc1466e
vim-patch:9.0.0082: cannot interrupt global command from command line
...
Problem: Cannot interrupt global command from command line.
Solution: Reset got_int in another place. (closes vim/vim#10739 )
3cfae39b08
2022-07-27 06:19:43 +08:00
zeertzjq
45e2bbae83
vim-patch:9.0.0051: using CTRL-C wih :append may hang Vim
...
Problem: Using CTRL-C wih :append may hang Vim.
Solution: Reset got_int. (closes vim/vim#10729 , closes vim/vim#10728 )
f754fe6a3d
2022-07-27 06:19:43 +08:00
zeertzjq
147cce29a6
fix(cmdline): trigger CmdlineEnter and ModeChanged earlier ( #19474 )
...
Match Vim's ordering in code.
These tests are unrelated to ext_cmdline. Move them out of that block.
2022-07-26 10:21:30 +08:00
zeertzjq
fe159d23fd
vim-patch:9.0.0071: command overlaps with printed text in scrollback ( #19505 )
...
Problem: Command overlaps with printed text in scrollback.
Solution: Clear until end-of-line and use correct message chunk.
(closes vim/vim#10765 , closes vim/vim#10764 )
ecdc82e74e
N/A patches for version.c:
vim-patch:9.0.0070: using utfc_ptr2char_len() when length is negative
Problem: Using utfc_ptr2char_len() when length is negative.
Solution: Check value of length. (closes vim/vim#10760 )
4dc513a22c
2022-07-26 07:30:33 +08:00
zeertzjq
611b43369e
vim-patch:8.2.5155: in diff mode windows may get out of sync
...
Problem: In diff mode windows may get out of sync. (Gary Johnson)
Solution: Avoid that the other window scrolls for 'cursorbind'.
a315ce1f32
2022-07-25 20:30:35 +08:00
zeertzjq
0cc41a61d1
test: improve some input tests
2022-07-25 09:47:28 +08:00
zeertzjq
eb77122823
fix(input): do no reinterpret mouse keys with ALT modifiers
...
Remove check for MOD_MASK_META as it is for <T- which never appears in TUI.
Make small changes to docs.
2022-07-25 09:47:28 +08:00
notomo
46e3e1c728
fix(api): make nvim_cmd mods.silent work correctly ( #19489 )
2022-07-25 09:43:39 +08:00
zeertzjq
ea13dce3bf
fix(mouse): fix using uninitialized memory with K_MOUSEMOVE ( #19480 )
...
Fix a mistake in the porting of Vim patch 8.0.1309.
2022-07-24 09:29:28 +08:00
zeertzjq
bb7853a62d
test(mksession_spec): use %bwipeout! instead of qall! to close terminal ( #19465 )
...
Avoid expect_exit, session will be closed when a new one is spawned.
2022-07-22 12:59:34 +08:00
zeertzjq
8af3d641da
fix(grid): don't use utfc_ptr2char_len() when printing until NUL ( #19456 )
2022-07-22 06:41:51 +08:00
zeertzjq
c15e9d3746
fix(mark): give correct error message when mark is in another buffer ( #19454 )
2022-07-21 17:42:17 +08:00
bfredl
598cbcae4a
Merge pull request #19445 from famiu/fix/local_winbar_tabs
...
fix: local winbar with tabs
2022-07-20 16:57:38 +02:00
Famiu Haque
9879fd5d08
fix: local winbar with tabs
...
Closes #19396
2022-07-20 20:32:22 +06:00
Lewis Russell
559ef3e903
feat(lua): allow vim.cmd to be indexed ( #19238 )
2022-07-20 12:29:24 +01:00
zeertzjq
72dfd57e5f
test: deal with RPC call causing Nvim to exit later
2022-07-19 19:41:07 +08:00
zeertzjq
366e90cdc8
test: avoid timing-sensitive undo message
2022-07-19 19:41:07 +08:00
bfredl
101fd04ee2
Merge pull request #19409 from bfredl/uiunpack
...
perf(ui): some ui_client fixes/optimizations before externalized TUI
2022-07-19 13:08:11 +02:00
zeertzjq
7b835ba796
vim-patch:8.2.1147 ( #19425 )
...
vim-patch:8.2.1147: :confirm may happen in cooked mode
Problem: :confirm may happen in cooked mode. (Jason Franklin)
Solution: Switch to raw mode before prompting. (Brandon Pfeifer)
27321dbeed
Code is N/A, but this improves tests. Port the improved tests to Lua.
2022-07-19 13:00:22 +08:00
JP
1a655b71a8
fix(lua): make it possible to cancel vim.wait() with Ctrl-C ( #19217 )
2022-07-19 09:11:13 +08:00
Munif Tanjim
a80d447b47
fix(mouse): click on global statusline with splits ( #19390 )
2022-07-19 06:35:04 +08:00
Enan Ajmain
3340728c72
fix(powershell): filter ":!" commands with args #19268
...
Problem:
Since 0b9664f524
powershell filtered
:[range]! commands with args causes error:
"Start-Process: A positional parameter cannot be found that accepts argument ..."
Solution:
Pass args to Start-Process via `-ArgumentList`.
closes #19250
2022-07-18 13:26:09 -07:00
bfredl
be3d2f5125
perf(ui): avoid ui_flush() work in headless mode
2022-07-18 14:08:44 +02:00
bfredl
45bee1dafd
perf(ui): eliminate spurious memory allocations for hl_attr_define event
2022-07-18 14:08:44 +02:00
Enan Ajmain
1b462705d0
fix(windows):exepath, stdpath return wrong slashes #19111
...
exepath and stdpath should respect shellslash and return path with
proper file separator.
Closes #13787
2022-07-17 17:00:08 -07:00
ii14
13abe20b5f
refactor(lsp): use autocmd api ( #19407 )
...
* refactor(lsp): use autocmd api
* refactor(lsp): inline BufWritePost and VimLeavePre callbacks
2022-07-17 19:13:33 +02:00
matveyt
eb9b93b5e0
feat(defaults): mouse=nvi #19290
...
Problem:
Since right-click can now show a popup menu, we can provide messaging to
guide users who expect 'mouse' to be disabled by default. So 'mouse' can
now be enabled by default.
Solution:
Do it.
Closes #15521
2022-07-17 04:14:04 -07:00
zeertzjq
9f837a5dcf
fix(api): fix nvim_parse_cmd interfere with printing line in Ex mode ( #19400 )
2022-07-17 09:59:32 +08:00
James McCoy
08a50f6690
Merge pull request #19395 from jamessan/flaky-job-test
...
test(job_spec): accept alternate messages for "append environment" tests
2022-07-16 21:24:06 -04:00
James McCoy
bcb5b7b3f6
test(job_spec): accept alternate messages for "append environment" tests
...
These tests commonly fail in Debian with
[ ERROR ] test/functional/core/job_spec.lua @ 81: jobs append environment with pty #env
test/functional/helpers.lua:198:
==============================================================================
test/helpers.lua:73: Expected objects to be the same.
Passed in:
(table: 0x2aa4bcc1040) {
*[1] = {
[1] = 'notification'
[2] = 'stdout'
*[3] = {
[1] = 0
*[2] = {
[1] = 'hello world abc' } } } }
Expected:
(table: 0x2aa4bcc0d70) {
*[1] = {
[1] = 'notification'
[2] = 'stdout'
*[3] = {
[1] = 0
*[2] = {
[1] = 'hello world abc'
*[2] = '' } } } }
Since the test is validating the "hello world abc" message, not the
newlines, accept either set of message sequences.
2022-07-16 14:08:27 -04:00
zeertzjq
0cfd4fa8f3
vim-patch:8.2.2643: various code not covered by tests
...
Problem: Various code not covered by tests.
Solution: Add a few more test. (Yegappan Lakshmanan, closes vim/vim#7995 )
1f448d906b
Cherry-pick some test_edit.vim changes from patches 8.2.{1022,1432}.
Reorder test_undo.vim to match upstream.
2022-07-16 22:46:54 +08:00
zeertzjq
780edfc0eb
vim-patch:8.2.2608: character input not fully tested
...
Problem: Character input not fully tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#7963 )
f4fcedc59d
Cherry-pick related changes from patches 8.2.{0433,0866}.
2022-07-16 21:55:27 +08:00
zeertzjq
bc73795a58
vim-patch:8.2.0198: no tests for y/n prompt
...
Problem: No tests for y/n prompt.
Solution: Add tests. (Dominique Pelle, closes vim/vim#5564 )
43c60eda2a
2022-07-16 21:32:25 +08:00
zeertzjq
f7c6676199
vim-patch:8.2.0052: more-prompt not properly tested
...
Problem: More-prompt not properly tested.
Solution: Add a test case. (Dominique Pelle, closes vim/vim#5404 )
c6d539b671
2022-07-16 21:32:25 +08:00
zeertzjq
711a6a9157
fix(ex_cmds): correct flags for :const ( #19387 )
2022-07-16 14:54:31 +08:00
zeertzjq
73526abbbd
fix(api): do not switch win/buf if getting option in current win/buf ( #19383 )
2022-07-16 09:31:05 +08:00
zeertzjq
33da7d83e8
fix(pum): make right drag in anchor grid to select work in multigrid UI ( #19382 )
2022-07-16 08:26:40 +08:00
Natasha England-Elbro
86f0da922f
fix: remote UI may get invalid 'pumblend' value #19379
...
fixes: https://github.com/neovim/neovim/issues/19340
2022-07-15 10:42:01 -07:00
Famiu Haque
6645f59832
fix: right-click in clickable statusline #19252
...
Problem:
1. Right-click does not work in statusline unless you left-click first (to focus
the statusline).
2. Modifier (e.g. shift+rightclick) does not work in statusline.
Solution:
Make clickable statusline sections receive right-clicks regardless of whether
the statusline is focused.
Closes #18994
2022-07-15 09:15:02 -07:00
zeertzjq
827906136d
test: improve searchhl tests
2022-07-15 19:38:13 +08:00