diff --git a/doc/syntastic.txt b/doc/syntastic.txt index 5a43f6bf..84ddfb51 100644 --- a/doc/syntastic.txt +++ b/doc/syntastic.txt @@ -175,7 +175,7 @@ variable to 0. > *'syntastic_echo_current_error'* Default: 1 -If enabled, syntastic will echo the errror associated with the current line to +If enabled, syntastic will echo the error associated with the current line to the command window. If multiple errors are found, the first will be used. > let g:syntastic_echo_current_error=1 < diff --git a/syntax_checkers/html/tidy.vim b/syntax_checkers/html/tidy.vim index 957dd6ee..0f528026 100644 --- a/syntax_checkers/html/tidy.vim +++ b/syntax_checkers/html/tidy.vim @@ -63,7 +63,7 @@ let s:ignore_html_errors = [ \ " attribute \"type\" has invalid value \"search\"" \ ] -function! s:IgnoreErrror(text) +function! s:IgnoreError(text) for i in s:ignore_html_errors + g:syntastic_html_tidy_ignore_errors if stridx(a:text, i) != -1 return 1 @@ -101,7 +101,7 @@ function! SyntaxCheckers_html_tidy_GetLocList() " filter out valid HTML5 from the errors for n in range(len(loclist)) - if loclist[n]['valid'] && s:IgnoreErrror(loclist[n]['text']) == 1 + if loclist[n]['valid'] && s:IgnoreError(loclist[n]['text']) == 1 let loclist[n]['valid'] = 0 endif endfor diff --git a/syntax_checkers/xhtml/tidy.vim b/syntax_checkers/xhtml/tidy.vim index 9431e568..72e4de93 100644 --- a/syntax_checkers/xhtml/tidy.vim +++ b/syntax_checkers/xhtml/tidy.vim @@ -47,7 +47,7 @@ function! s:TidyEncOptByFenc() return get(tidy_opts, &fileencoding, '-utf8') endfunction -function! s:IgnoreErrror(text) +function! s:IgnoreError(text) for i in g:syntastic_xhtml_tidy_ignore_errors if stridx(a:text, i) != -1 return 1 @@ -75,7 +75,7 @@ function! SyntaxCheckers_xhtml_tidy_GetLocList() \ 'defaults': {'bufnr': bufnr("")} }) for n in range(len(loclist)) - if loclist[n]['valid'] && s:IgnoreErrror(loclist[n]['text']) == 1 + if loclist[n]['valid'] && s:IgnoreError(loclist[n]['text']) == 1 let loclist[n]['valid'] = 0 endif endfor