mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-12 13:03:47 -05:00
Fix bug in C-L mapping
The <C-R> should be <C-R>=, otherwise an error occurs when pressing C-L:
E492: Not an editor command: nohlsearchas('diff')?'|diffupdate':''
This commit is contained in:
@@ -30,7 +30,7 @@ set ttimeoutlen=100
|
|||||||
set incsearch
|
set incsearch
|
||||||
" Use <C-L> to clear the highlighting of :set hlsearch.
|
" Use <C-L> to clear the highlighting of :set hlsearch.
|
||||||
if maparg('<C-L>', 'n') ==# ''
|
if maparg('<C-L>', 'n') ==# ''
|
||||||
nnoremap <silent> <C-L> :nohlsearch<C-R>has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
|
nnoremap <silent> <C-L> :nohlsearch<C-R>=has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
|
||||||
endif
|
endif
|
||||||
|
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
|
|||||||
Reference in New Issue
Block a user