diff --git a/plugin/fswitch.vim b/plugin/fswitch.vim old mode 100755 new mode 100644 index 68fd958..9db2387 --- a/plugin/fswitch.vim +++ b/plugin/fswitch.vim @@ -315,11 +315,7 @@ function! FSwitch(filename, precmd) if strlen(a:precmd) != 0 execute a:precmd endif - if bufexists(newpath) - execute 'buffer ' . fnameescape(newpath) - else - execute 'edit ' . fnameescape(newpath) - endif + execute 'edit ' . fnameescape(newpath) else echoerr "Alternate has evaluated to nothing. See :h fswitch-empty for more info." endif