diff --git a/syntax_checkers/glsl/cgc.vim b/syntax_checkers/glsl/cgc.vim index c7bf6ee0..efbd231f 100644 --- a/syntax_checkers/glsl/cgc.vim +++ b/syntax_checkers/glsl/cgc.vim @@ -43,6 +43,7 @@ endfunction function! s:GetProfile() let save_cursor = getpos('.') + call cursor(1, 1) let magic = '\m\C^// profile:\s*' let line = search(magic, 'c') call setpos('.', save_cursor)