aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2012-08-19 12:22:41 -0700
committerPaul Eggert2012-08-19 12:22:41 -0700
commit32bd425074e32184d3d4d9f985fd1a60814d78b2 (patch)
tree5977abec524b84fda9932c0bb9813c5a5034139d /src
parent7cef3569a3d872ea5be07a529b68910bf1d8b790 (diff)
downloademacs-32bd425074e32184d3d4d9f985fd1a60814d78b2.tar.gz
emacs-32bd425074e32184d3d4d9f985fd1a60814d78b2.zip
* xdisp.c (handle_invisible_prop): Make it a bit faster
and avoid a gcc -Wmaybe-uninitialized diagnostic.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 63b968c8bb5..7f15a1a7921 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12012-08-19 Paul Eggert <eggert@cs.ucla.edu>
2
3 * xdisp.c (handle_invisible_prop): Make it a bit faster
4 and avoid a gcc -Wmaybe-uninitialized diagnostic.
5
12012-08-19 Chong Yidong <cyd@gnu.org> 62012-08-19 Chong Yidong <cyd@gnu.org>
2 7
3 * xdisp.c (handle_invisible_prop): Fix ellipses at overlay string 8 * xdisp.c (handle_invisible_prop): Fix ellipses at overlay string
diff --git a/src/xdisp.c b/src/xdisp.c
index aab643f9fe8..e41783d03c1 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -4094,7 +4094,7 @@ handle_invisible_prop (struct it *it)
4094 4094
4095 /* Get the position at which the next visible text can be 4095 /* Get the position at which the next visible text can be
4096 found in IT->string, if any. */ 4096 found in IT->string, if any. */
4097 len = SCHARS (it->string); 4097 endpos = len = SCHARS (it->string);
4098 XSETINT (limit, len); 4098 XSETINT (limit, len);
4099 do 4099 do
4100 { 4100 {
@@ -4109,12 +4109,12 @@ handle_invisible_prop (struct it *it)
4109 display_ellipsis_p = 1; 4109 display_ellipsis_p = 1;
4110 } 4110 }
4111 } 4111 }
4112 while (invis_p && INTEGERP (end_charpos) && endpos < len); 4112 while (invis_p && endpos < len);
4113 4113
4114 if (display_ellipsis_p) 4114 if (display_ellipsis_p)
4115 it->ellipsis_p = 1; 4115 it->ellipsis_p = 1;
4116 4116
4117 if (INTEGERP (end_charpos) && endpos < len) 4117 if (endpos < len)
4118 { 4118 {
4119 /* Text at END_CHARPOS is visible. Move IT there. */ 4119 /* Text at END_CHARPOS is visible. Move IT there. */
4120 struct text_pos old; 4120 struct text_pos old;