]> code.delx.au - gnu-emacs/blobdiff - src/dispnew.c
Merge from origin/emacs-25
[gnu-emacs] / src / dispnew.c
index f834f359ec5d76b1a6c82207c6ab24c950348fa0..a9f06eb3c123c7a1d82dfccab9fba4e1125f67b9 100644 (file)
@@ -321,9 +321,7 @@ margin_glyphs_to_reserve (struct window *w, int total_glyphs, int margin)
       int width = w->total_cols;
       double d = max (0, margin);
       d = min (width / 2 - 1, d);
-      /* Since MARGIN is positive, we cannot possibly have less than
-        one glyph for the marginal area.  */
-      return max (1, (int) ((double) total_glyphs / width * d));
+      return (int) ((double) total_glyphs / width * d);
     }
   return 0;
 }