Famiu Haque
c2f7a2a18d
feat: multibuffer preview support for inccommand
...
Allows preview callbacks to modify multiple buffers in order to show the
preview. Previously, if multiple buffers were modified, only the current
buffer would have its state restored. After this change, all buffers
have their state restored after preview.
Closes #19103 .
2022-08-19 09:27:52 +06:00
zeertzjq
9ab9eb1220
fix(source): make changing 'shellslash' change expand() result
2022-08-15 10:14:53 +08:00
zeertzjq
02a4974418
vim-patch:7.4.1168 ( #19645 )
...
Problem: This doesn't give the right result: eval(string(v:true)). (Nikolay
Pavlov)
Solution: Make the string "v:true" instead of "true".
f48aa160fd
2022-08-13 21:31:00 +08:00
bfredl
33f4ba7379
fix(winbar): do not always assume cursor is valid. fixes #19458
2022-08-13 10:45:21 +02:00
zeertzjq
0d9e09bf67
test: make Ex mode exit test test what it wants to test ( #19728 )
2022-08-12 09:04:08 +08:00
Lewis Russell
a27756cc24
fix(signs): priority of extmark signs ( #19718 )
2022-08-11 17:26:17 +01:00
Famiu Haque
78658ef383
fix(api): vim.cmd.make crashes when argument count isn't 1 ( #19701 )
...
Closes #19696
2022-08-10 18:37:59 +08:00
zeertzjq
3030b4d653
feat(tui): allow grid and host to disagree on ambiguous-width chars ( #19686 )
...
Note: This only applies to ambiguous-width characters.
2022-08-09 21:08:46 +08:00
zeertzjq
d31ee6664d
test: increse expect_exit() timeouts ( #19680 )
...
A timeout of 100 milliseconds is sometimes still too short for macOS.
Change it to 1000 milliseconds.
2022-08-08 22:04:21 +08:00
zeertzjq
603f7bd253
fix(fillchars): change fallback after setcellwidths()
2022-08-08 20:03:40 +08:00
zeertzjq
18766e742b
fix(folds): fix fold remains when :delete makes buffer empty ( #19673 )
2022-08-08 06:07:59 +08:00
zeertzjq
629169462a
fix(terminal): skip aucmd_win when checking terminal size ( #19668 )
2022-08-07 19:43:29 +08:00
zeertzjq
48051ed62c
vim-patch:8.2.1281: the "trailing characters" error can be hard to understand
...
Problem: The "trailing characters" error can be hard to understand.
Solution: Add the trailing characters to the message.
2d06bfde29
2022-08-07 14:39:19 +08:00
zeertzjq
d0686540f5
vim-patch:8.2.1280: Ex command error cannot contain an argument
...
Problem: Ex command error cannot contain an argument.
Solution: Add ex_errmsg() and translate earlier. Use e_trailing_arg where
possible.
8930caaa1a
Remove duplicate test file 062_tab_pages_spec.lua
2022-08-07 14:38:57 +08:00
Lewis Russell
0fdf59ac9d
fix(api): nvim_cmd handle 0 range ( #19655 )
...
Fixes #19608
2022-08-06 13:53:37 +01:00
zeertzjq
a308f53525
fix(api): fix nvim_buf_set_text heap-use-after-free ( #19644 )
...
The line returned but ml_get_buf() may be freed by another call to
ml_get_buf(), so it is necessary to make a copy.
2022-08-06 06:22:01 +08:00
zeertzjq
a78606ec53
test(let_spec): increase expect_exit() timeout
...
Test ":unlet self-referencing node in a List graph #6070 " feeds many characters into typeahead, so a timeout of only 100 milliseconds sometimes fails. Change that timeout to 1000 milliseconds.
2022-08-05 08:32:54 +08:00
zeertzjq
0a29267514
fix(completion): remove wrong FUNC_ATTR_NONNULL_ALL ( #19627 )
2022-08-03 21:50:14 +08:00
ii14
3df8d9b8c5
feat(lua): print source locations of lua callbacks ( #19597 )
...
Co-authored-by: ii14 <ii14@users.noreply.github.com >
2022-08-03 13:41:17 +01:00
zeertzjq
c57e133e50
fix(ui): set redraw_cmdline when setting window height ( #19630 )
2022-08-03 19:25:03 +08:00
bfredl
0806c882cd
Merge pull request #19584 from bfredl/terminal_c_BSL_c_O
...
implement <c-\><c-o> key for terminal mode
2022-08-02 14:53:20 +02:00
zeertzjq
def0ced4c7
fix(tabpage): check if ROWS_AVAIL changed for resize ( #19620 )
...
N/A patches for version.c:
vim-patch:9.0.0135: comment about tabpage line above the wrong code
Problem: Comment about tabpage line above the wrong code.
Solution: Move the comment. (closes vim/vim#10836 )
0b0ccbbfb0
2022-08-02 20:48:41 +08:00
bfredl
9092540315
feat(terminal): implement <c-\><c-o> for terminal mode
...
this works similar to <c-o> or <c-\><c-o> in insert mode
2022-08-02 13:54:41 +02:00
zeertzjq
0a049c322f
test: improve mapping tests and docs ( #19619 )
2022-08-02 11:13:22 +08:00
Mathias Fußenegger
e99de3f12f
fix(lsp): send didOpen if name changes on write ( #19583 )
...
`:saveas newName` changes the name of an existing buffer.
Due to the buffer re-use it skips the lsp attach phase and immediately
sends a `didSave` notification to the server.
Servers get confused about this, because they expect a `didOpen`
notification first.
Closes https://github.com/neovim/neovim/issues/18688
2022-08-01 22:32:53 +02:00
zeertzjq
d954e8da62
feat(mapset): support restoring "replace_keycodes" and "desc"
2022-08-01 21:54:18 +08:00
zeertzjq
cabb23ea4d
test: fix api/keymap_spec.lua tests
2022-08-01 21:54:18 +08:00
zeertzjq
6963c2bdcd
vim-patch:8.2.0815: maparg() does not provide enough information for mapset()
...
Problem: maparg() does not provide enough information for mapset().
Solution: Add "lhsraw" and "lhsrawalt" items. Drop "simplified"
9c65253fe7
vim-patch:9.0.0127: unused variable
Problem: Unused variable.
Solution: Remove the variable. (closes vim/vim#10829 )
e95f22f63a
2022-08-01 21:54:18 +08:00
ii14
db6e93c48d
feat(api): add replace_keycodes to nvim_set_keymap ( #19598 )
2022-08-01 21:35:08 +08:00
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