Fix typo
This commit is contained in:
parent
a944fdf37c
commit
37e6297bc4
@ -3,7 +3,7 @@
|
|||||||
" Author: Kim Silkebækken <kim.silkebaekken+vim@gmail.com>
|
" Author: Kim Silkebækken <kim.silkebaekken+vim@gmail.com>
|
||||||
" haya14busa <hayabusa1419@gmail.com>
|
" haya14busa <hayabusa1419@gmail.com>
|
||||||
" Source: https://github.com/Lokaltog/vim-easymotion
|
" Source: https://github.com/Lokaltog/vim-easymotion
|
||||||
" Last Change: 07 Feb 2014.
|
" Last Change: 10 Feb 2014.
|
||||||
"=============================================================================
|
"=============================================================================
|
||||||
" Saving 'cpoptions' {{{
|
" Saving 'cpoptions' {{{
|
||||||
scriptencoding utf-8
|
scriptencoding utf-8
|
||||||
@ -378,13 +378,13 @@ function! s:turn_off_hl_error() "{{{
|
|||||||
let save_verbose = &verbose
|
let save_verbose = &verbose
|
||||||
let &verbose = 0
|
let &verbose = 0
|
||||||
try
|
try
|
||||||
redir => cursor
|
redir => error
|
||||||
silent highlight Error
|
silent highlight Error
|
||||||
redir END
|
redir END
|
||||||
finally
|
finally
|
||||||
let &verbose = save_verbose
|
let &verbose = save_verbose
|
||||||
endtry
|
endtry
|
||||||
let hl = substitute(matchstr(cursor, 'xxx \zs.*'), '[ \t\n]\+\|cleared', ' ', 'g')
|
let hl = substitute(matchstr(error, 'xxx \zs.*'), '[ \t\n]\+\|cleared', ' ', 'g')
|
||||||
if !empty(substitute(hl, '\s', '', 'g'))
|
if !empty(substitute(hl, '\s', '', 'g'))
|
||||||
let s:old_hl_error = hl
|
let s:old_hl_error = hl
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user