MacVim: don't use ^L in insert mode

References #234.
This commit is contained in:
Marco Hinz 2017-04-12 11:18:38 +02:00
parent 9dcdb8fda9
commit b1e58456cf
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -189,7 +189,7 @@ function! sy#sign#process_diff(sy, diff) abort
execute 'sign unplace' a:sy.internal[line].id 'buffer='.a:sy.buffer
endfor
if has('gui_macvim') && has('gui_running')
if has('gui_macvim') && has('gui_running') && mode() == 'n'
" MacVim needs an extra kick in the butt, when setting signs from the
" exit handler. :redraw would trigger a "hanging cursor" issue.
call feedkeys("\<c-l>")