Fix attempt to restore cursor in netrw

This commit is contained in:
Loic Nageleisen 2020-06-29 14:25:33 +02:00
parent 34f5c6cf85
commit bffebe63fc

3
vimrc
View file

@ -155,6 +155,9 @@ let g:EditorConfig_exclude_patterns = ['fugitive://.\*']
" Restore last known cursor position
function! ResCur()
if &filetype == 'netrw'
return 0
endif
if line("'\"") <= line("$")
normal! g`"
return 1