aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/window.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/window.el b/lisp/window.el
index f1ee87aad25..72957d846ae 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -2172,7 +2172,8 @@ the font."
2172 (with-selected-window (window-normalize-window window t) 2172 (with-selected-window (window-normalize-window window t)
2173 (let* ((window-width (window-body-width window t)) 2173 (let* ((window-width (window-body-width window t))
2174 (font-width (window-font-width window face)) 2174 (font-width (window-font-width window face))
2175 (ncols (/ window-width font-width))) 2175 (ncols (- (/ window-width font-width)
2176 (line-number-display-width 'columns))))
2176 (if (and (display-graphic-p) 2177 (if (and (display-graphic-p)
2177 overflow-newline-into-fringe 2178 overflow-newline-into-fringe
2178 (not 2179 (not