Remove g:vimtex_quickfix_fix_paths

The option will now always be activated, as there seems to be no reason
not to keep it activated.
This commit is contained in:
Karl Yngve Lervåg 2016-04-10 11:04:09 +02:00
parent b05ab1427e
commit 12a0f00603
2 changed files with 4 additions and 20 deletions

View File

@ -21,7 +21,6 @@ function! vimtex#latexmk#init_options() " {{{1
call vimtex#util#set_default('g:vimtex_quickfix_ignored_warnings', [])
call vimtex#util#set_default('g:vimtex_quickfix_mode', '2')
call vimtex#util#set_default('g:vimtex_quickfix_open_on_warning', '1')
call vimtex#util#set_default('g:vimtex_quickfix_fix_paths', '0')
if exists('g:vimtex_latexmk_callback_hook')
echoerr 'Deprecated option: g:vimtex_latexmk_callback_hook!'
@ -46,12 +45,10 @@ function! vimtex#latexmk#init_script() " {{{1
endif
" Add autocommand to fix paths in quickfix
if g:vimtex_quickfix_fix_paths
augroup vimtex_latexmk_fix_dirs
au!
au QuickFixCmdPost c*file call s:fix_quickfix_paths()
augroup END
endif
augroup vimtex_latexmk_fix_dirs
au!
au QuickFixCmdPost c*file call s:fix_quickfix_paths()
augroup END
endfunction
" }}}1

View File

@ -721,19 +721,6 @@ Options~
Default value: 0
*g:vimtex_quickfix_fix_paths*
Some users do not like to use |autochdir|. The file names in LaTeX error
messages are relative, thus the current working directory is important. If
this option is enabled, then the paths for the quickfix entries are fixed so
that they should work with |noautochdir|.
Note: This option uses a |QuickFixCmdPost| autocommand in order to update
the quickfix list through |setqflist|. Thus, the option may have side
effects if one edits other file types in the same Vim instance. The
option is therefore disabled by default.
Default value: 0
*g:vimtex_quickfix_ignore_all_warnings*
This option controls whether or not LaTeX warnings should be included in the
|quickfix| window. LaTeX errors will always be included.