zeertzjq
9938961fd8
test: add more tests for :*map cursor and redrawing
2022-02-17 10:07:42 +08:00
zeertzjq
a92046e43f
vim-patch:8.2.4401: map listing does not clear the rest of the command line
...
Problem: Map listing does not clear the rest of the command line.
Solution: Call msg_clear_eos(). (closes vim/vim#5623 , closes vim/vim#5962 )
d288eaad84
2022-02-17 08:45:15 +08:00
Jay Sandhu
80a3018a09
test: add some tests for :*map <expr>
...
Add tests for:
- Cursor position restored after :map expr
- Cursor position restored after :imap expr
- Error in :cmap expr handled correctly
Cherry-picked from #12837
2022-02-17 08:45:15 +08:00
zeertzjq
2ffe66a5a4
vim-patch:8.2.4338: an error from an expression mapping messes up the display
...
Problem: An error from an expression mapping messes up the display.
Solution: When the expression results in an empty string return K_IGNORE.
In cmdline mode redraw the command line. (closes vim/vim#9726 )
74a0a5b26d
2022-02-17 08:45:14 +08:00
zeertzjq
c90cf8c77b
vim-patch:8.1.2336: when an expr mapping moves the cursor it is not restored
...
Problem: When an expr mapping moves the cursor it is not restored.
Solution: Position the cursor after an expr mapping. (closes vim/vim#5256 )
4ebe0e62d0
2022-02-17 08:44:58 +08:00
zeertzjq
3230b31486
Merge pull request #17431 from zeertzjq/vim-8.2.4345
...
vim-patch:8.2.4345
2022-02-17 06:53:15 +08:00
Lewis Russell
dc24eeb9fe
feat(highlight): support color names for cterm
2022-02-16 22:48:34 +00:00
zeertzjq
b94b116236
Merge pull request #17429 from zeertzjq/vim-8.2.4400
...
vim-patch:8.2.{4392,4394,4400}
2022-02-17 06:33:45 +08:00
zeertzjq
7b048df4dc
vim-patch:8.2.4345: <amatch> is expanded like a file name for DirChangedPre
...
Problem: <amatch> is expanded like a file name for DirChangedPre.
Solution: Do not expand <amatch>. (closes vim/vim#9742 ) Also for the User event.
f6246f51e3
2022-02-17 06:19:10 +08:00
zeertzjq
4646ea1079
Merge pull request #17363 from zeertzjq/dirchangedpre
...
feat(events): add DirChangedPre
2022-02-17 06:07:19 +08:00
zeertzjq
9c5228f3e7
vim-patch:8.2.4400: MS-Windows: cannot use the mouse in the console with VIMDLL
...
Problem: MS-Windows: cannot use the mouse in the console with VIMDLL.
Solution: use add_char2buf() instead of fix_input_buffer(). (closes vim/vim#9784 ,
closes vim/vim#9769 )
646bb7247a
N/A patches for version.c:
vim-patch:8.2.4392: MS-Windows with VIMDLL: Escaping CSI is wrong
Problem: MS-Windows with VIMDLL: Escaping CSI is wrong.
Solution: Put back #ifdef. (Ken Takata, closes vim/vim#9769 )
64d95cfc56
vim-patch:8.2.4394: UTF8 select mode test fails on MS-Windows
Problem: UTF8 select mode test fails on MS-Windows.
Solution: Revert the #ifdef change.
9fdde7992a
2022-02-17 06:02:55 +08:00
Lewis Russell
876aaf2003
fix(highlight): allow globals to be cleared
...
- and reduce heap allocations
Fixes #17420
2022-02-16 20:22:09 +00:00
Stephan Seitz
8ab5ec4aaa
feat(tree-sitter): allow Atom-style capture fallbacks ( #14196 )
...
This allows falling back to `@definition` when we have no mapping
`@definition.fancy-specialization`.
This behavior is described in tree-sitter's documentation
(https://tree-sitter.github.io/tree-sitter/syntax-highlighting#theme ).
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/738
2022-02-16 19:38:19 +01:00
bfredl
9fe8d2c9df
Merge pull request #16678 from lewis6991/runtime_file_err
...
fix(api): re-route nvim_get_runtime_file errors
2022-02-16 10:52:38 +01:00
zeertzjq
0852644bee
Merge pull request #17424 from zeertzjq/map-followup
...
follow-up PR to #17423
2022-02-16 17:32:37 +08:00
zeertzjq
758f1e5999
refactor: remove NULL check that is always true
2022-02-16 17:01:35 +08:00
zeertzjq
cc81a8253b
docs: minor changes related to mapping description
2022-02-16 16:58:32 +08:00
Shadman
9a74c2b04a
feat(mappings): considering map description when filtering ( #17423 )
2022-02-16 16:39:50 +08:00
zeertzjq
deb33a9775
Merge pull request #17422 from shadmansaleh/enhance/maps
...
fix: <Nop> not shown in :map commands
2022-02-16 16:01:17 +08:00
shadmansaleh
07a98b1a75
fix: <Nop> not shown in :map commands
2022-02-16 13:12:46 +06:00
shadmansaleh
f5518b78c8
chore: improve lua keymaps internal representation scheme
2022-02-16 11:20:10 +06:00
James McCoy
9ef5696132
Merge pull request #17418 from dundargoc/revert/ci/run-functionaltest-on-draft
...
revert: "ci: run functionaltest-lua on drafts as well"
2022-02-15 19:02:54 -05:00
Lewis Russell
d512be55a2
fix(api): re-route nvim_get_runtime_file errors
...
This allows nvim_get_runtime_file to be properly used via pcall
2022-02-15 23:00:28 +00:00
Gregory Anders
238b944e58
fix(api): validate command names in nvim_add_user_command ( #17406 )
...
This uses the same validation used when defining commands with
`:command`.
2022-02-15 13:08:40 -07:00
zeertzjq
3449405f38
Merge pull request #17417 from zeertzjq/vim-8.2.4388
...
vim-patch:8.2.4388: dead code in op_insert()
2022-02-15 21:12:36 +08:00
zeertzjq
a2c3d431d6
vim-patch:8.2.4388: dead code in op_insert()
...
Problem: Dead code in op_insert().
Solution: Remove condition and else block. (closes vim/vim#9782 )
7745f14ef3
2022-02-15 21:07:01 +08:00
Dundar Göc
48108975c9
revert: "ci: run functionaltest-lua on drafts as well"
...
This reverts commit a91a5c1880
.
2022-02-15 14:01:06 +01:00
zeertzjq
0072a97b2e
Merge pull request #17411 from zeertzjq/vim-8.2.3820
...
vim-patch:8.2.{3820,3823}: "vrc" does not replace composing characters
2022-02-15 20:36:01 +08:00
zeertzjq
8cc881e4f4
Merge pull request #17412 from zeertzjq/vim-8.2.4154
...
vim-patch:8.2.4154: ml_get error when exchanging windows in Visual mode
2022-02-15 20:35:48 +08:00
James McCoy
e29ba986f5
Merge pull request #17409 from dundargoc/ci/disable-sync
...
ci(labeler): disable sync that interferes with other jobs
2022-02-15 06:15:15 -05:00
James McCoy
89bff49570
Merge pull request #17405 from dundargoc/ci/add-more-reviewers
...
ci: add more reviewers
2022-02-15 06:10:41 -05:00
zeertzjq
f92e74900f
fix(api): nvim_win_set_cursor() redraw for cursorline and statusline
2022-02-15 11:53:12 +08:00
zeertzjq
6eec30ccfc
vim-patch:8.2.4154: ml_get error when exchanging windows in Visual mode
...
Problem: ml_get error when exchanging windows in Visual mode.
Solution: Correct end of Visual area when entering another buffer.
05b2761548
2022-02-15 10:26:39 +08:00
zeertzjq
8f3e56ed3a
vim-patch:8.2.3820: "vrc" does not replace composing characters
...
Problem: "vrc" does not replace composing characters, while "rc" does.
Solution: Check the byte length including composing characters.
(closes vim/vim#9351 )
8ee6028de3
vim-patch:8.2.3823: test for visual replace is in wrong function
Problem: Test for visual replace is in wrong function.
Solution: Move it to another function.
6ecf58b0d7
2022-02-15 09:35:43 +08:00
zeertzjq
1bd6c0a05c
Merge pull request #17410 from zeertzjq/test-old-reorder
...
test(old): reorder test_functions.vim and test_visual.vim to match Vim
2022-02-15 09:25:57 +08:00
zeertzjq
9f9ef3e21d
test(old): reorder test_functions.vim and test_visual.vim to match Vim
2022-02-15 08:59:46 +08:00
Sean Dewar
edc5554fc4
Merge pull request #17402 from seandewar/vim-8.2.4120
...
vim-patch:8.2.{3073,4120,4151,4152}
2022-02-15 00:30:05 +00:00
zeertzjq
8051fa1aff
Merge pull request #17394 from zeertzjq/vim-8.2.4343
...
vim-patch:8.2.4343: when reloading not all properties are detected
2022-02-15 08:10:21 +08:00
Dundar Göc
5aed2e9f27
ci(labeler): disable sync that interferes with other jobs
2022-02-14 21:16:36 +01:00
Dundar Göc
51cc5c5654
ci: add more reviewers
2022-02-14 18:58:10 +01:00
Sean Dewar
2b75ac7aa9
vim-patch:8.2.4152: block insert with double wide character fails
...
Problem: Block insert with double wide character fails.
Solution: Adjust the expected output.
fc6ccebea6
2022-02-14 17:29:49 +00:00
Sean Dewar
afbed8cb75
vim-patch:8.2.4151: reading beyond the end of a line
...
Problem: Reading beyond the end of a line.
Solution: For block insert only use the offset for correcting the length.
57df9e8a9f
2022-02-14 17:29:49 +00:00
Sean Dewar
e662d86e8d
vim-patch:8.2.4120: block insert goes over the end of the line
...
Problem: Block insert goes over the end of the line.
Solution: Handle invalid byte better. Fix inserting the wrong text.
9f8c304c8a
2022-02-14 17:29:49 +00:00
Sean Dewar
f8b75e5822
vim-patch:8.2.3073: when cursor is move for block append wrong text is inserted
...
Problem: When cursor is move for block append wrong text is inserted.
Solution: Calculate an offset. (Christian Brabandt, closes vim/vim#8433 ,
closes vim/vim#8288 )
4067bd3604
2022-02-14 17:29:48 +00:00
Sean Dewar
d5d51308c0
test(old): cherry-pick test_visual changes from v8.2.2945
...
59b262362f
2022-02-14 17:29:45 +00:00
Sean Dewar
b7e6c1b525
test(old): cherry-pick test_visual changes from v8.2.2901
...
3e72dcad8b
2022-02-14 17:29:41 +00:00
Sean Dewar
abf42b7ec6
test(old): cherry-pick test_visual changes from v8.2.0369
...
1671f44881
Omit Test_AAA_start_visual_mode_with_count comment change as it hasn't been
ported yet.
2022-02-14 17:29:35 +00:00
James McCoy
758d7726df
Merge pull request #17399 from zeertzjq/ci-review-script
2022-02-14 11:30:39 -05:00
zeertzjq
dcefd48c1b
vim-patch:8.2.0156: various typos in source files and tests
...
Problem: Various typos in source files and tests.
Solution: Fix the typos. (Emir Sari, closes vim/vim#5532 )
4b96df5a01
2022-02-14 18:56:30 +08:00
zeertzjq
c9b46f154b
vim-patch:8.1.1955: tests contain typos
...
Problem: Tests contain typos.
Solution: Correct the typos. (Dominique Pelle)
1bc353b6f1
Other changes are either N/A or already applied.
2022-02-14 18:56:30 +08:00