From 019fc00cba95c7d74bd87a513b436651f37c43e1 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Mon, 18 Jan 2016 04:26:41 +0900 Subject: [PATCH] Fix jump back to original view fix #210 --- autoload/EasyMotion.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/EasyMotion.vim b/autoload/EasyMotion.vim index 5c49ccc..0c0030b 100644 --- a/autoload/EasyMotion.vim +++ b/autoload/EasyMotion.vim @@ -1375,7 +1375,7 @@ function! s:EasyMotion(regexp, direction, visualmode, is_inclusive, ...) " {{{ " if you just use cursor(s:current.cursor_position) to jump back, " current line will become middle of line window if ! empty(a:visualmode) - keepjumps call winrestview({'lnum' : win_first_line, 'topline' : win_first_line}) + keepjumps call winrestview({'lnum' : s:current.cursor_position[0], 'topline' : win_first_line}) else " for adjusting cursorline keepjumps call cursor(s:current.cursor_position)