diff options
author | Gregory Heytings <gregory@heytings.org> | 2022-07-20 17:12:23 +0000 |
---|---|---|
committer | Gregory Heytings <gregory@heytings.org> | 2022-07-20 19:14:41 +0200 |
commit | c7eef61eee179d127d4edeb828c723f4dee530b4 (patch) | |
tree | 71e1f6978c0f0828f03aa781e9244e39f8c6618b /src/buffer.c | |
parent | 7c0fc853649c7e203814295de32357cfd6a336a9 (diff) | |
download | emacs-c7eef61eee179d127d4edeb828c723f4dee530b4.tar.gz emacs-c7eef61eee179d127d4edeb828c723f4dee530b4.tar.bz2 emacs-c7eef61eee179d127d4edeb828c723f4dee530b4.zip |
Further tweaks to long lines handling.
* src/xdisp.c (redisplay_window): Increase the threshold above which
long lines detection is performed in the buffer. This should avoid
triggering that detection for most simple editing operations.
* src/lisp.h (modiff_incr): Explain why the counter is incremented
logarithmically.
* src/buffer.h (struct buffer_text): Adapt the comment about the
'modiff' field accordingly.
* src/buffer.c (modify_overlay): Increase the counter by 1 instead of
the size of the buffer section on which the overlay is placed.
* etc/NEWS: Small improvement.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index edd85d8ef63..d8964180cff 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -4010,7 +4010,7 @@ modify_overlay (struct buffer *buf, ptrdiff_t start, ptrdiff_t end) bset_redisplay (buf); - modiff_incr (&BUF_OVERLAY_MODIFF (buf), end - start); + modiff_incr (&BUF_OVERLAY_MODIFF (buf), 1); } /* Remove OVERLAY from LIST. */ |