From e777916540675d2c9789c1a6d68aefcfb1747db0 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Thu, 21 Jan 2016 19:05:29 +0900 Subject: [PATCH] Make sure canceling easymotion with fix #237 --- autoload/EasyMotion.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/EasyMotion.vim b/autoload/EasyMotion.vim index d623ae1..97a0dc3 100644 --- a/autoload/EasyMotion.vim +++ b/autoload/EasyMotion.vim @@ -473,8 +473,8 @@ endfunction " }}} " -- Get characters from user input ------ function! s:GetChar() " {{{ let char = getchar() - if char == 27 - " Escape key pressed + if char == 27 || char == 3 + " Escape or key pressed redraw call s:Message('Cancelled') return ''