Skip to content

Commit

Permalink
GH-185 - Abort the minimap move if we can't populate the info map
Browse files Browse the repository at this point in the history
  • Loading branch information
ZNielsen committed Oct 2, 2023
1 parent dc2a26b commit 433e393
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autoload/minimap/vim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,10 @@ endfunction
function! s:minimap_move() abort
if s:win_info == {}
call s:get_window_info()
end
if s:win_info == {}
echom 'Could not populate s:win_info, exiting'
endif
endif
let curr = line('.')

execute 'wincmd p'
Expand Down

0 comments on commit 433e393

Please sign in to comment.