From 4b3ba70dba0c9756dcd1262cb8eacb00d97cbf02 Mon Sep 17 00:00:00 2001
From: Jerome Reybert <jreybert@gmail.com>
Date: Wed, 31 Aug 2016 01:07:20 +0200
Subject: [PATCH] plugin/magit.vim: scroll hunk to top of window when jump to
 next/prev hunk

---
 plugin/magit.vim | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugin/magit.vim b/plugin/magit.vim
index 24e4d28..a06208a 100644
--- a/plugin/magit.vim
+++ b/plugin/magit.vim
@@ -1131,6 +1131,7 @@ function! magit#jump_hunk(dir)
 				break
 			endtry
 		endwhile
+		silent execute "normal! zt"
 	endif
 endfunction
 
-- 
GitLab