From 469fa9c9418c60d8993d1da01aa93883ce1dbcd2 Mon Sep 17 00:00:00 2001 From: Vlad Chepaikyn Date: Thu, 25 Apr 2019 22:35:18 +0300 Subject: [PATCH] Fix adding entry in jump list, when it doesnt. When do opening file which is opened already, then nothing happens as expected. But entry in jump list doesn't added also. So we just add it manualy. --- autoload/ctrlsf.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/ctrlsf.vim b/autoload/ctrlsf.vim index 99aa20e..b5b466e 100644 --- a/autoload/ctrlsf.vim +++ b/autoload/ctrlsf.vim @@ -416,6 +416,9 @@ func! s:OpenFileInWindow(file, lnum, col, mode, split) abort else exec 'silent edit ' . fnameescape(a:file) endif + else + " Because we dont change any context, we have to set jump mark manualy. + mark ' endif endif