From f751bfecafd802e9df168d1d5fef3ba425cf8cac Mon Sep 17 00:00:00 2001 From: haya14busa Date: Mon, 24 Feb 2014 18:11:09 +0900 Subject: [PATCH] Escape '&' for substitution --- autoload/EasyMotion.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/EasyMotion.vim b/autoload/EasyMotion.vim index 3ec0170..1dd0df6 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: 22 Feb 2014. +" Last Change: 24 Feb 2014. "============================================================================= " Saving 'cpoptions' {{{ scriptencoding utf-8 @@ -924,7 +924,7 @@ function! s:PromptUser(groups) "{{{ let lines[line_num]['marker'] = substitute( \ lines[line_num]['marker'], \ '\%' . (col_num + col_add) . 'c.', - \ substitute_expr, + \ escape(substitute_expr,'&'), \ '') else " EOL