Skip to content

Commit

Permalink
Fix #6 - Jumping to a buffer that's open in another window
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
idanarye committed Oct 7, 2014
1 parent 5126865 commit 401ae8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions autoload/dutyl/core.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion doc/dutyl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Author: Idan Arye <https://github.com/idanarye/>
License: Same terms as Vim itself (see |license|)

Version: 1.4.0
Version: 1.4.1

INTRODUCTION *dutyl*

Expand Down

0 comments on commit 401ae8a

Please sign in to comment.