From 37e6297bc4b71751d6055ecc612f1dc38cd8197d Mon Sep 17 00:00:00 2001 From: haya14busa Date: Mon, 10 Feb 2014 20:32:10 +0900 Subject: [PATCH] Fix typo --- autoload/EasyMotion.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/EasyMotion.vim b/autoload/EasyMotion.vim index 909e2a7..3655d8e 100644 --- a/autoload/EasyMotion.vim +++ b/autoload/EasyMotion.vim @@ -3,7 +3,7 @@ " Author: Kim Silkebækken " haya14busa " Source: https://github.com/Lokaltog/vim-easymotion -" Last Change: 07 Feb 2014. +" Last Change: 10 Feb 2014. "============================================================================= " Saving 'cpoptions' {{{ scriptencoding utf-8 @@ -378,13 +378,13 @@ function! s:turn_off_hl_error() "{{{ let save_verbose = &verbose let &verbose = 0 try - redir => cursor + redir => error silent highlight Error redir END finally let &verbose = save_verbose 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')) let s:old_hl_error = hl endif