Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions plugin/fswitch.vim
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down