Commit 73782c65 authored by Kungsgeten's avatar Kungsgeten Committed by Jason Blevins

Offset bugfix if only left fringe set.

If left fringe is > 0, but the right fringe 0, the function
frame-fringe-width returns a positive value. However it is
only the right fringe which absorbs the newline. Because
of this we check the width of the right fringe instead.
parent f1b2d20f
......@@ -1155,7 +1155,7 @@ Case is ignored."
If the frame has a fringe, it will absorb the newline.
Otherwise, we reduce the line length by a one-character offset."
(let* ((window (get-buffer-window deft-buffer))
(offset (if (> (frame-fringe-width) 0) 0 1)))
(offset (if (> (fringe-columns 'right) 0) 0 1)))
(when window
(- (window-text-width window) offset))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment