Skip to content

Commit

Permalink
Fix 'open:edit-or-*' action
Browse files Browse the repository at this point in the history
  • Loading branch information
KapJI committed Jan 20, 2021
1 parent f057425 commit 2e73969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/fern/internal/buffer.vim
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function! fern#internal#buffer#open(bufname, ...) abort
endif
if options.opener =~# s:edit_or_opener_pattern
let opener2 = matchstr(options.opener, s:edit_or_opener_pattern)
let options.opener = &modified ? opener2 : options.opener
let options.opener = &modified ? opener2 : 'edit'
endif
if options.keepalt && options.opener ==# 'edit'
let options.mods .= ' keepalt'
Expand Down

0 comments on commit 2e73969

Please sign in to comment.