Fix for a typing-faster-than-thinking bug in cgc.
This commit is contained in:
parent
063ee82aaf
commit
bf17e1e77c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user