mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix: use normal! <C-L> in default <C-L> mapping (#17695)
This commit is contained in:
parent
356631cba0
commit
f291a0339c
@ -84,7 +84,7 @@ Nvim creates the following default mappings at |startup|. You can disable any
|
|||||||
of these in your config by simply removing the mapping, e.g. ":unmap Y".
|
of these in your config by simply removing the mapping, e.g. ":unmap Y".
|
||||||
>
|
>
|
||||||
nnoremap Y y$
|
nnoremap Y y$
|
||||||
nnoremap <C-L> <Cmd>nohlsearch<Bar>diffupdate<CR><C-L>
|
nnoremap <C-L> <Cmd>nohlsearch<Bar>diffupdate<Bar>normal! <C-L><CR>
|
||||||
inoremap <C-U> <C-G>u<C-U>
|
inoremap <C-U> <C-G>u<C-U>
|
||||||
inoremap <C-W> <C-G>u<C-W>
|
inoremap <C-W> <C-G>u<C-W>
|
||||||
<
|
<
|
||||||
|
@ -842,7 +842,10 @@ static void init_typebuf(void)
|
|||||||
void init_default_mappings(void)
|
void init_default_mappings(void)
|
||||||
{
|
{
|
||||||
add_map((char_u *)"Y y$", NORMAL, true);
|
add_map((char_u *)"Y y$", NORMAL, true);
|
||||||
add_map((char_u *)"<C-L> <Cmd>nohlsearch<Bar>diffupdate<CR><C-L>", NORMAL, true);
|
|
||||||
|
// Use normal! <C-L> to prevent inserting raw <C-L> when using i_<C-O>
|
||||||
|
// See https://github.com/neovim/neovim/issues/17473
|
||||||
|
add_map((char_u *)"<C-L> <Cmd>nohlsearch<Bar>diffupdate<Bar>normal! <C-L><CR>", NORMAL, true);
|
||||||
add_map((char_u *)"<C-U> <C-G>u<C-U>", INSERT, true);
|
add_map((char_u *)"<C-U> <C-G>u<C-U>", INSERT, true);
|
||||||
add_map((char_u *)"<C-W> <C-G>u<C-W>", INSERT, true);
|
add_map((char_u *)"<C-W> <C-G>u<C-W>", INSERT, true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user