updated for version 7.0g
diff --git a/src/gui.c b/src/gui.c
index fe12864..7d11839 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -4456,8 +4456,8 @@
     long_u	rgb = gui_mch_get_rgb(pixel);
 
     return  (int)(  (((rgb >> 16) & 0xff) * 299)
-	           + (((rgb >> 8) & 0xff) * 587)
-	           +  ((rgb	  & 0xff) * 114)) / 1000;
+		   + (((rgb >> 8) & 0xff) * 587)
+		   +  ((rgb	  & 0xff) * 114)) / 1000;
 }
 
 #if defined(FEAT_GUI_X11) || defined(PROTO)