Fix for a typing-faster-than-thinking bug in cgc.

This commit is contained in:
LCD 47 2014-01-03 14:18:37 +02:00
parent 063ee82aaf
commit bf17e1e77c

View File

@ -43,6 +43,7 @@ endfunction
function! s:GetProfile() function! s:GetProfile()
let save_cursor = getpos('.') let save_cursor = getpos('.')
call cursor(1, 1)
let magic = '\m\C^// profile:\s*' let magic = '\m\C^// profile:\s*'
let line = search(magic, 'c') let line = search(magic, 'c')
call setpos('.', save_cursor) call setpos('.', save_cursor)