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:
Markus Teich
2015-09-24 12:06:05 +02:00
committed by Tim Pope
parent 027b2390e1
commit 26f8783e08

View File

@@ -30,7 +30,7 @@ set ttimeoutlen=100
set incsearch
" Use <C-L> to clear the highlighting of :set hlsearch.
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
set laststatus=2