From dda635992eb9be4218096759535a55f578147e01 Mon Sep 17 00:00:00 2001
From: Jerome Reybert <jreybert@gmail.com>
Date: Tue, 9 Feb 2016 13:59:42 +0100
Subject: [PATCH] plugin/magit.vim: do not refresh magit buffer when discard is
 not performed

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

diff --git a/plugin/magit.vim b/plugin/magit.vim
index f3354b1..0d82407 100644
--- a/plugin/magit.vim
+++ b/plugin/magit.vim
@@ -753,6 +753,7 @@ function! s:mg_stage_closed_file(discard)
 								\ g:magit_sections.staged . "\" section, "
 								\ "unstage file first."
 					echohl None
+					return
 				endif
 			endif
 			call magit#update_buffer()
-- 
GitLab