]> git.eshelyaron.com Git - emacs.git/commit
Improve the heuristic for long lines detection.
authorGregory Heytings <gregory@heytings.org>
Mon, 18 Jul 2022 15:50:57 +0000 (15:50 +0000)
committerGregory Heytings <gregory@heytings.org>
Mon, 18 Jul 2022 15:54:55 +0000 (17:54 +0200)
commit1ff69cc744eaa704afc1ff81242d41a6c09439fe
tree3355dbbb1715b0661b1b0e7beaf5b0ef20f41eef
parent6a097a86210cf1226d432b255cc41aa74fe93507
Improve the heuristic for long lines detection.

* src/buffer.h (struct buffer_text): New 'unchanged_size' field.
(BUF_UNCHANGED_SIZE): New macro to access the field.

* src/buffer.c (Fget_buffer_create): Initialize the field.
(Fbuffer_swap_text): Handle it.

* src/xdisp.c (mark_window_display_accurate_1): Set the field.
(redisplay_window): Use the field for long lines detection.
src/buffer.c
src/buffer.h
src/xdisp.c