diff --git a/autoload/gitmessenger/popup.vim b/autoload/gitmessenger/popup.vim index ed0d8ed..3e74e86 100644 --- a/autoload/gitmessenger/popup.vim +++ b/autoload/gitmessenger/popup.vim @@ -211,7 +211,7 @@ function! s:popup__open() dict abort execute 'autocmd BufWipeout,BufLeave call getbufvar(' . popup_bufnr . ', "__gitmessenger_popup").close()' if has_key(self.opts, 'enter') && !self.opts.enter - noautocmd wincmd p + wincmd p if self.type !=# 'floating' " Opening a preview window may move global position of the cursor. " `opened_at` is used for checking if the popup window should be