4712 revert chktex 4661 (#4725)

* Fix 4712 - revert #4661

* Fix tests
This commit is contained in:
Horacio Sanson 2024-02-26 11:56:56 +09:00 committed by GitHub
parent 9cc8383fe9
commit 00dcf52d6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View File

@ -10,7 +10,6 @@ function! ale_linters#tex#chktex#GetCommand(buffer) abort
" Avoid bug when used without -p (last warning has gibberish for a filename)
let l:options .= ' -v0 -p stdin -q'
" Avoid bug of reporting wrong column when using tabs (issue #723)
let l:options .= ' -s TabSize=1'
" Check for optional .chktexrc
let l:chktex_config = ale#path#FindNearestFile(a:buffer, '.chktexrc')

View File

@ -7,7 +7,7 @@ After:
Execute(The default command should be correct):
AssertLinter 'chktex',
\ ale#Escape('chktex')
\ . ' -v0 -p stdin -q -s TabSize=1'
\ . ' -v0 -p stdin -q'
\ . ' -I'
Execute(The executable should be configurable):
@ -15,7 +15,7 @@ Execute(The executable should be configurable):
AssertLinter 'bin/foo',
\ ale#Escape('bin/foo')
\ . ' -v0 -p stdin -q -s TabSize=1'
\ . ' -v0 -p stdin -q'
\ . ' -I'
Execute(The options should be configurable):
@ -23,5 +23,5 @@ Execute(The options should be configurable):
AssertLinter 'chktex',
\ ale#Escape('chktex')
\ . ' -v0 -p stdin -q -s TabSize=1'
\ . ' -v0 -p stdin -q'
\ . ' --something'