From 401ae8a9488538c5937d579d4f254fde27a18d1d Mon Sep 17 00:00:00 2001 From: IdanArye Date: Wed, 8 Oct 2014 00:44:40 +0300 Subject: [PATCH] Fix #6 - Jumping to a buffer that's open in another window Had to either remove the jump-to-different-window-if-file-is-open-there or work around it. Chose to remove that functionality so it'll be more tag-jump-like. I still consider it a bugfix though. --- autoload/dutyl/core.vim | 5 +---- doc/dutyl.txt | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/autoload/dutyl/core.vim b/autoload/dutyl/core.vim index 8676150..6909a3e 100644 --- a/autoload/dutyl/core.vim +++ b/autoload/dutyl/core.vim @@ -232,10 +232,7 @@ endfunction function! dutyl#core#jumpToPosition(args) abort if has_key(a:args,'file') let l:bufnr=bufnr(a:args.file) - let l:winnr=bufwinnr(l:bufnr) - if 0<=l:winnr - execute l:winnr.'wincmd w' - elseif 0<=l:bufnr + if 0<=l:bufnr execute 'buffer '.l:bufnr else execute 'edit '.a:args.file diff --git a/doc/dutyl.txt b/doc/dutyl.txt index b5cb6ee..e17ae19 100644 --- a/doc/dutyl.txt +++ b/doc/dutyl.txt @@ -4,7 +4,7 @@ Author: Idan Arye License: Same terms as Vim itself (see |license|) -Version: 1.4.0 +Version: 1.4.1 INTRODUCTION *dutyl*