]> git.eshelyaron.com Git - emacs.git/commit
Improve and fix last changes
authorGregory Heytings <gregory@heytings.org>
Sat, 1 Apr 2023 14:14:45 +0000 (14:14 +0000)
committerGregory Heytings <gregory@heytings.org>
Sat, 1 Apr 2023 14:17:05 +0000 (16:17 +0200)
commitdce08cf05ccd2551d2e304e868605102233f8c40
tree5fb516e828aa350a38f4c67056fdc09817741d81
parent2093e010dc14148455480d607b2f06ee43b1e6e0
Improve and fix last changes

* src/xdisp.c (get_narrowed_width): Use WINDOW_RIGHT_FRINGE_WIDTH,
which works both for character-only terminals and for GUI frames
without fringes.
(get_nearby_bol_pos): Instead of searching for BOL in
[pos-500000..pos], gradually extend the region, starting with
[pos-500..pos].  This is much faster in buffers with some long
lines in the middle of lots of short lines.
src/xdisp.c