GNU bug report logs -
#13399
24.3.50; Word-wrap can't wrap at zero-width space U-200B
Previous Next
Reported by: martin rudalics <rudalics <at> gmx.at>
Date: Thu, 10 Jan 2013 08:31:02 UTC
Severity: wishlist
Found in version 24.3.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
>> But PARTIALLY nil means to return nil if the position is only partially
>> visible. And in this case `fit-window-to-buffer' should try to enlarge
>> the window.
>
> Should it? It enlarges the window in line units, so the enlarged
> window will again show a partially visible line, no?
That's the clue. The bug is in this part of `fit-window-to-buffer':
(if (zerop delta)
;; Return zero if DELTA became zero in the process.
0
The delta comes from `count-screen-lines' and that function returns the
number of lines in the buffer but NOT in canonical line units. Removing
this conditional now seems to fix the problem for sure.
Still `fit-window-to-buffer' would benefit from a function that returned
either the pixel height needed for displaying the region or its number
of canonical line units. Obviously, the former would be preferable when
we switch to pixel-sized windows.
martin
This bug report was last modified 4 years and 245 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.